Skip to content

feat: support keywords 'check' and 'checks' - #33

Open
tibatob wants to merge 1 commit into
LiamClarkeNZ:mainfrom
tibatob:feature/support_for_check_constraints
Open

feat: support keywords 'check' and 'checks'#33
tibatob wants to merge 1 commit into
LiamClarkeNZ:mainfrom
tibatob:feature/support_for_check_constraints

Conversation

@tibatob

@tibatob tibatob commented Jun 19, 2026

Copy link
Copy Markdown

Hi

This PR will add support for the check-constraints syntax introduced to dbml in November 2025.

Either form (inline on column or table level checks) are supported.

Table users {
  name varchar(255) [not null]
  age integer [check: `age >= 0`]

  checks {
    `char_length(name) > 3` [name: 'chk_name_min_lenght']
  }

@tibatob tibatob changed the title feat: support keywords 'check' and 'ckecks' feat: support keywords 'check' and 'checks' Jun 19, 2026
@tibatob
tibatob force-pushed the feature/support_for_check_constraints branch from a10233e to cada347 Compare June 22, 2026 05:05
@linux-china

Copy link
Copy Markdown

any news to merge?

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