You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 1.1.3 of surql-gen does not support the "IF NOT EXISTS" syntax for DEFINE statements, introduced in SurrealDB version 1.3.0. It errors out as follows:
[Error: Parse error: Failed to parse query at line 5 column 16 expected ON
|
5 | DEFINE USER IF NOT EXISTS myusername ON DATABASE PASSWORD 'secret' ROLES EDITOR;
|
] {
code: 'GenericFailure'
}
The text was updated successfully, but these errors were encountered:
lylejohnson
changed the title
Add support for "IF NOT EXISTS" syntax for DEFINE statements
Does not support for "IF NOT EXISTS" syntax for DEFINE statements
May 29, 2024
Version 1.1.3 of
surql-gen
does not support the "IF NOT EXISTS" syntax forDEFINE
statements, introduced in SurrealDB version 1.3.0. It errors out as follows:The text was updated successfully, but these errors were encountered: