We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SQLite supports columns without a type:
CREATE TABLE example (column1 INT, column2)
However, with GRDB, the table.column function only allows creating columns with a given type:
db.create(table: "example") { t in t.column("column1", .integer) t.column("column2") // error }
is there a way to do this?
The text was updated successfully, but these errors were encountered:
Hello @schveiguy, glad to see you again!
According to SQLite documentation, an untyped column has the exact same behavior as a numeric column:
db.create(table: "example") { t in t.column("column1", .integer) t.column("column2", .numeric) }
This will make your code compile, and your database 100% equivalent (but for the syntax of the table declaration).
Sorry, something went wrong.
Thanks, that looks correct! I will go ahead with this (was just using a create statement, but was sure there was a better way)
Support for untyped columns has landed: 5f2d6f8 in development branch.
Shipped in v1.2
No branches or pull requests
SQLite supports columns without a type:
However, with GRDB, the table.column function only allows creating columns with a given type:
is there a way to do this?
The text was updated successfully, but these errors were encountered: