db_constraints 0.0.7
SQL db constraints for your classes.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
db_constraints
Includes
- UniqueConstraintColumn
- PrimaryKeyColumn
- ExclusionConstraint
- CheckConstraint
- NotNull
- SetConstraint
- EnumConstraint
- ForeignKeyConstraint
- Github markdown ddoc!
Generating documentation
Ddoc:
dub -b docs
Running tests
dub test
If you want the coverage analysis too use:
dub test -b unittest-cov
Documentation/Tutorials
Please, refer to the wiki for code documentation and tutorial on how to use this package.
Contribution
Contributions are welcome. Feel free to fork and pull request!
Limitations
- The getter and setter should have the same name. The private member should have the same name as the getter and setter but starting with an underscore. Look at any of the examples on the wiki if this wording does not make sense.
- You may only foreign key to the referenced class' clustered index. If you foreign key to id's and mark all your id's as primary keys then you do not need to worry about this.
- Cannot use structs until std.signals can work with structs.
Todo
- Tips and tricks sample.
- Registered by Matthew Armbruster
- 0.0.7 released 9 years ago
- marmy28/db_constraints
- github.com/marmy28/db_constraints/wiki
- GPL-2.0 and BSL-1.0
- Copyright © 2015, Matthew
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.7 2015-Nov-17 0.0.6 2015-Oct-25 0.0.5 2015-Oct-15 0.0.4 2015-Oct-12 ~master 2016-Mar-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
125 downloads total
-
- Score:
- 0.3
- Short URL:
- db_constraints.dub.pm