Skip to content

Implement Check constraints for column definitions #3753

@Pavan-Nambi

Description

@Pavan-Nambi

creating table shouldn't even be possible as col is i and we r dng J>=18.
and it should also doesn't respect whatever we pass into check() even if we r dng i>=18

turso> CREATE TABLE t1 (
    i INTEGER CHECK(j >= 18)
);
turso> .tables
t1
turso> insert into t1(i) values(1);
turso> select * from t1;
┌───┐
│ i │
├───┤
│ 1 │
└───┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions