Description

SQL db constraints for your classes.

Package Information

Version0.0.7 (2015-Nov-17)
Homepagehttps://github.com/marmy28/db_constraints/wiki
Repositoryhttps://github.com/marmy28/db_constraints
LicenseGPL-2.0 and BSL-1.0
CopyrightCopyright © 2015, Matthew
AuthorsMatthew Armbruster
Registered byMatthew Armbruster
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

db_constraints

Dub

Build Status

Coverage Status

Includes

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.

Available versions

0.0.7 0.0.6 0.0.5 0.0.4 ~master