Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign Key Support #1

Open
fvpalha opened this issue Nov 13, 2012 · 3 comments
Open

Foreign Key Support #1

fvpalha opened this issue Nov 13, 2012 · 3 comments

Comments

@fvpalha
Copy link
Collaborator

fvpalha commented Nov 13, 2012

Hello.

How I can to define rules to UPDATE/DELETE actions?

Regards.

Fernando Palha

@godexsoft
Copy link
Owner

Hi Fernando,

Can you explain in greater detail what you want to achieve?

Thanks,
Alex

@fvpalha
Copy link
Collaborator Author

fvpalha commented Nov 13, 2012

Hi Alex.

I want to use the database integrity constraints.
For example, when a user is removed, the scores are removed too.

I hope I have explained better.

Regards.

@godexsoft
Copy link
Owner

Fernando,

I see. There is no support for constraints yet. Feel free to add it :)
However, currently the ORM will remove-cascade automatically. So when you
remove a User it will remove all associated Scores too.
Take a look at sqlite_orm.h:511.

Cheers,
Alex

On Tue, Nov 13, 2012 at 1:32 PM, Fernando Vilmar Palha <
[email protected]> wrote:

Hi Alex.

I want to use the database integrity constraints.
For example, when a user is removed, the scores are removed, too.

I hope I have explained better.

Regards.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-10326108.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants