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

Added uuid value autogeneration #664

Merged
merged 1 commit into from
Oct 26, 2019
Merged

Conversation

red-avtovo
Copy link
Contributor

New method Column.autoGenerate() allows to automatically generate random UUID value to columns where explicit passing of a value is not mandatory (for id's for example)

Example of usage:

object TestTable : Table("test_table") {
    val id = uuid("id").autoGenerate().primaryKey()
    val val1 = text("val1")
}

@Tapac Tapac merged commit 6257f17 into JetBrains:master Oct 26, 2019
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

Successfully merging this pull request may close these issues.

2 participants