Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 87df549

Browse files
committed
Allow PRAGMA KEY constraint.
PRAGMA KEY appears to be another undocumented feature that is accepted by the SQLite parser but is not documented.
1 parent fcff8c8 commit 87df549

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/grammar.pegjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,13 @@ column_constraint_primary "PRIMARY KEY Column Constraint"
19391939
return Object.assign(p, c, d, a);
19401940
}
19411941

1942+
/**
1943+
* @note
1944+
* PRAGMA KEY appears to be another undocumented feature
1945+
* that is accepted by the SQLite parser but is not documented.
1946+
*/
19421947
col_primary_start "PRIMARY KEY Keyword"
1943-
= s:( PRIMARY ) o k:( KEY ) o
1948+
= s:( PRIMARY / PRAGMA ) o k:( KEY ) o
19441949
{
19451950
return {
19461951
'type': 'constraint',

0 commit comments

Comments
 (0)