diff options
author | drh <> | 2021-08-18 13:13:58 +0000 |
---|---|---|
committer | drh <> | 2021-08-18 13:13:58 +0000 |
commit | 44183f83d0fbbc1e092b990afd2ede033759574f (patch) | |
tree | f088a2cea25ee1e93f91550bb41cdeedaf815e11 /src/sqliteInt.h | |
parent | b70f2eabb49dc672bb0bdb75c1da155b5f769f78 (diff) | |
download | sqlite-44183f83d0fbbc1e092b990afd2ede033759574f.tar.gz sqlite-44183f83d0fbbc1e092b990afd2ede033759574f.zip |
What would it be like if you could add the keyword "STRICT" after a CREATE
TABLE statement to cause the table to (1) allow only a few well-defined
datatypes, (2) rigidly enforce those types, (3) require NOT NULL on PK
columns, (4) always enforce foreign key constraint, and so forth? This
branch seeks to explore that question.
FossilOrigin-Name: 78732b9f98936693ae29c85a692c35a84c7d065aec79903af34b08d18f10a5e6
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index ade7399d8..5a3acfd03 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2284,6 +2284,7 @@ struct Table { #define TF_HasStat4 0x00002000 /* STAT4 info available for this table */ #define TF_Ephemeral 0x00004000 /* An ephemeral table */ #define TF_Eponymous 0x00008000 /* An eponymous virtual table */ +#define TF_Strict 0x00010000 /* STRICT mode */ /* ** Allowed values for Table.eTabType @@ -4435,7 +4436,7 @@ void sqlite3AddCheckConstraint(Parse*, Expr*, const char*, const char*); void sqlite3AddDefaultValue(Parse*,Expr*,const char*,const char*); void sqlite3AddCollateType(Parse*, Token*); void sqlite3AddGenerated(Parse*,Expr*,Token*); -void sqlite3EndTable(Parse*,Token*,Token*,u8,Select*); +void sqlite3EndTable(Parse*,Token*,Token*,u32,Select*); void sqlite3AddReturning(Parse*,ExprList*); int sqlite3ParseUri(const char*,const char*,unsigned int*, sqlite3_vfs**,char**,char **); |