You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a table which has a field that is a nullable foreign key. When I try to compile I get this:
I have a table with a primary key that is of type VARCHAR and is referenced by another table, but it looks like Sequoia only supports. At least, when I try to compile I get this:
Error: Unbound value Field.Null.foreign_key
Example:
openSequoia_mysqlmoduleURL=structinclude (val table "url")
let id =Field.int"id"(* ... *)endmoduleUse=structinclude (val table "use")
let id =Field.int"id"let url =Field.foreign_key "url"~references:URL.id
let referer =Field.Null.foreign_key "referer"~references:URL.id (* <- error *)(* ... *)end
The text was updated successfully, but these errors were encountered:
There's no support for nullable foreign keys. I could add this, but I'm probably not adding new features until I can figure out a non-hackish way to implement the PPX extension. Currently there are issues when tables and queries are defined in separate files which make the library a bit annoying to use in practice.
I have a table which has a field that is a nullable foreign key. When I try to compile I get this:
I have a table with a primary key that is of type
VARCHAR
and is referenced by another table, but it looks like Sequoia only supports. At least, when I try to compile I get this:Example:
The text was updated successfully, but these errors were encountered: