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
UUID
Let's say we have:
CREATE TABLE talent ( talent_id UUID NOT NULL, name TEXT NOT NULL );
which generates
struct Talent { var id : UUID var name : String init(id: UUID, name: String) { ... } }
it would be nice if the init would be init(id: UUID = UUID(), name: String). As that kinda is the sane thing to do for new records.
init(id: UUID = UUID(), name: String)
The text was updated successfully, but these errors were encountered:
Generate a UUID for UUID primary keys
54ed3d6
If a structure has a UUID primary key, generate a default UUID for it, like: ```swift init(id: UUID = UUID()) {} ``` Implements issue #9.
Implemented.
Sorry, something went wrong.
helje5
No branches or pull requests
Let's say we have:
which generates
it would be nice if the init would be
init(id: UUID = UUID(), name: String)
. As that kinda is the sane thing to do for new records.The text was updated successfully, but these errors were encountered: