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

String default values becomes "''" #33

Closed
helje5 opened this issue Oct 3, 2024 · 1 comment
Closed

String default values becomes "''" #33

helje5 opened this issue Oct 3, 2024 · 1 comment
Assignees

Comments

@helje5
Copy link
Member

helje5 commented Oct 3, 2024

This SQL:

  note          TEXT NOT NULL DEFAULT '',

becomes this in generated init:

    note: String = "''",

and this in the mapping:

    public let note = MappedColumn<Account, String>(
      externalName: "note",
      defaultValue: "''",
      keyPath: \Account.note
    )
@helje5 helje5 self-assigned this Oct 3, 2024
@helje5
Copy link
Member Author

helje5 commented Oct 3, 2024

Fixed, a larger set of defaultValue expression is now implemented.
String generation of current time based types still needs to be done, issue #34.

@helje5 helje5 closed this as completed Oct 3, 2024
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

1 participant