Skip to content

Feat: add support to cuid(2), uuid(7), ulid() and nanoId() default vals#33

Merged
VoidClancy merged 1 commit into
masterfrom
codegen
Jul 10, 2026
Merged

Feat: add support to cuid(2), uuid(7), ulid() and nanoId() default vals#33
VoidClancy merged 1 commit into
masterfrom
codegen

Conversation

@VoidClancy

Copy link
Copy Markdown
Owner

1- change resolveDefaultValue() in resolver to carry the args passed into the default funcs

2- add the newely supported funcs in a map for fast lookup in defaultFuncCall(), and isKnownDefaultFunc() in the generator helpers

3- define generateUUID/7(), generateCUID/2(), generateULID() and generateNanoID() on the client

4- update sqlite/postgresDialect to return what they support from these functions(nothing) in GetSQLDefault()

5- fix validate{Model}Create to validate the missing types

6- add a model to the schema with all the default funcs we support and their variations

7- add allFieldsSoFar model for comprehensive testing on the types validation

1- change resolveDefaultValue() in resolver to carry the args passed into the default funcs

2- add the newely supported funcs in a map for fast lookup in defaultFuncCall(), and isKnownDefaultFunc() in the generator helpers

3- define generateUUID/7(), generateCUID/2(), generateULID() and generateNanoID() on the client

4- update sqlite/postgresDialect to return what they support from these functions(nothing) in GetSQLDefault()

5- fix validate{Model}Create to validate the missing types

6- add a model to the schema with all the default funcs we support and their variations

7- add allFieldsSoFar model for comprehensive testing on the types validation
@VoidClancy VoidClancy self-assigned this Jul 10, 2026
@VoidClancy VoidClancy merged commit 663cd93 into master Jul 10, 2026
3 of 4 checks passed
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.

1 participant