Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sql.bnf to add create statement overrides for use the schema create #646

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ stmt_list ::= ( stmt SEMI ) * {
mixin="com.alecstrong.sql.psi.core.psi.mixins.SqlStmtListMixin"
pin(".*")=1
}
stmt ::= [ EXPLAIN [ QUERY PLAN ] ] ( extension_stmt | alter_table_stmt | analyze_stmt | attach_stmt | begin_stmt | commit_stmt | create_index_stmt | create_table_stmt | create_trigger_stmt | create_view_stmt |
stmt ::= [ EXPLAIN [ QUERY PLAN ] ] ( extension_stmt | alter_table_stmt | analyze_stmt | attach_stmt | begin_stmt | commit_stmt | create_extension_stmt | create_schema_stmt | create_index_stmt | create_table_stmt | create_trigger_stmt | create_view_stmt |
create_virtual_table_stmt | delete_stmt_limited | detach_stmt | drop_index_stmt | drop_table_stmt | drop_trigger_stmt | drop_view_stmt | insert_stmt |
pragma_stmt | reindex_stmt | release_stmt | rollback_stmt | savepoint_stmt | compound_select_stmt | update_stmt_limited | vacuum_stmt
) {
Expand Down Expand Up @@ -489,3 +489,7 @@ module_argument_name ::= id
bind_parameter ::= '?'
table_options ::= table_option ( [COMMA] table_option ) *
table_option ::= WITHOUT ROWID

create_stmt_override :: = "__CREATE__"
create_extension_stmt ::= create_stmt_override
create_schema_stmt ::= create_stmt_override