Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Add support for refential integrity #55

Open
metakeule opened this issue May 14, 2014 · 4 comments
Open

Add support for refential integrity #55

metakeule opened this issue May 14, 2014 · 4 comments
Assignees

Comments

@metakeule
Copy link

Please add support for referential integrity, e.g.

type Person struct {
    ID int64 `ql:"uindex xPersonID"`
}

type Address struct {
     ID int64 `ql:"uindex xAddressID"`
     StreetNo string
     City string
     Person *Person `ql:"fkey on delete cascade"`
}
@cznic cznic self-assigned this May 15, 2014
@cznic
Copy link
Owner

cznic commented May 15, 2014

#MaybeSomeDay

@hibooboo2
Copy link

What am I missing here? What do you mean by this? Or is it just the delete cascade part for pointers?

@metakeule
Copy link
Author

@hibooboo2 See the linked article. On delete cascade, on delete restrict, on update cascade, on update restrict. Even MS Access can do this.

@hibooboo2
Copy link

Ahh ok so the on delete cascade etc part.. Can see why that would be highly desirable.

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

No branches or pull requests

3 participants