app.cash.sqldelight.dialects.postgresql.grammar.PostgreSqlParserUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postgresql-dialect Show documentation
Show all versions of postgresql-dialect Show documentation
The PostgreSQL Dialect for SQLDelight
package app.cash.sqldelight.dialects.postgresql.grammar
import app.cash.sqldelight.dialects.postgresql.grammar.psi.PostgreSqlTypes
import com.alecstrong.sql.psi.core.SqlParserUtil
import com.intellij.lang.ASTNode
import com.intellij.lang.PsiBuilder
import com.intellij.lang.parser.GeneratedParserUtilBase
import com.intellij.psi.PsiElement
import java.lang.AssertionError
import kotlin.Boolean
import kotlin.Int
import kotlin.Unit
import kotlin.jvm.JvmStatic
public object PostgreSqlParserUtil : GeneratedParserUtilBase() {
public var createElement: (ASTNode) -> PsiElement = { PostgreSqlTypes.Factory.createElement(it) }
public var overrides: GeneratedParserUtilBase.Parser? = null
public var column_constraint: GeneratedParserUtilBase.Parser? = null
public var current_timestamp_with_optional_interval: GeneratedParserUtilBase.Parser? = null
public var default_constraint: GeneratedParserUtilBase.Parser? = null
public var type_name: GeneratedParserUtilBase.Parser? = null
public var bind_parameter: GeneratedParserUtilBase.Parser? = null
public var table_constraint: GeneratedParserUtilBase.Parser? = null
public var identity_clause: GeneratedParserUtilBase.Parser? = null
public var generated_clause: GeneratedParserUtilBase.Parser? = null
public var small_int_data_type: GeneratedParserUtilBase.Parser? = null
public var int_data_type: GeneratedParserUtilBase.Parser? = null
public var big_int_data_type: GeneratedParserUtilBase.Parser? = null
public var numeric_data_type: GeneratedParserUtilBase.Parser? = null
public var approximate_numeric_data_type: GeneratedParserUtilBase.Parser? = null
public var small_serial_data_type: GeneratedParserUtilBase.Parser? = null
public var serial_data_type: GeneratedParserUtilBase.Parser? = null
public var big_serial_data_type: GeneratedParserUtilBase.Parser? = null
public var string_data_type: GeneratedParserUtilBase.Parser? = null
public var uuid_data_type: GeneratedParserUtilBase.Parser? = null
public var date_data_type: GeneratedParserUtilBase.Parser? = null
public var boolean_data_type: GeneratedParserUtilBase.Parser? = null
public var json_data_type: GeneratedParserUtilBase.Parser? = null
public var blob_data_type: GeneratedParserUtilBase.Parser? = null
public var interval_expression: GeneratedParserUtilBase.Parser? = null
public var with_clause_auxiliary_stmt: GeneratedParserUtilBase.Parser? = null
public var delete_stmt_limited: GeneratedParserUtilBase.Parser? = null
public var string_literal: GeneratedParserUtilBase.Parser? = null
public var literal_value: GeneratedParserUtilBase.Parser? = null
public var insert_stmt: GeneratedParserUtilBase.Parser? = null
public var conflict_target: GeneratedParserUtilBase.Parser? = null
public var conflict_update: GeneratedParserUtilBase.Parser? = null
public var conflict_assign: GeneratedParserUtilBase.Parser? = null
public var update_stmt_limited: GeneratedParserUtilBase.Parser? = null
public var returning_clause: GeneratedParserUtilBase.Parser? = null
public var alter_table_rules: GeneratedParserUtilBase.Parser? = null
public var alter_table_rename_column: GeneratedParserUtilBase.Parser? = null
public var alter_table_column_alias: GeneratedParserUtilBase.Parser? = null
public var alter_table_drop_column: GeneratedParserUtilBase.Parser? = null
public var alter_table_add_constraint: GeneratedParserUtilBase.Parser? = null
public var type_clause: GeneratedParserUtilBase.Parser? = null
public var data_clause: GeneratedParserUtilBase.Parser? = null
public var alter_table_alter_column: GeneratedParserUtilBase.Parser? = null
public var compound_select_stmt: GeneratedParserUtilBase.Parser? = null
public var extension_expr: GeneratedParserUtilBase.Parser? = null
public var window_function_expr: GeneratedParserUtilBase.Parser? = null
public var boolean_not_expression: GeneratedParserUtilBase.Parser? = null
public var boolean_literal: GeneratedParserUtilBase.Parser? = null
public var json_expression: GeneratedParserUtilBase.Parser? = null
public var jsona_binary_operator: GeneratedParserUtilBase.Parser? = null
public var jsonb_binary_operator: GeneratedParserUtilBase.Parser? = null
public var extension_stmt: GeneratedParserUtilBase.Parser? = null
public var copy_stdin: GeneratedParserUtilBase.Parser? = null
public var copy_option: GeneratedParserUtilBase.Parser? = null
public var copy_option_format: GeneratedParserUtilBase.Parser? = null
public var copy_option_freeze: GeneratedParserUtilBase.Parser? = null
public var copy_option_delimiter: GeneratedParserUtilBase.Parser? = null
public var copy_option_null: GeneratedParserUtilBase.Parser? = null
public var copy_option_header: GeneratedParserUtilBase.Parser? = null
public var copy_option_quote: GeneratedParserUtilBase.Parser? = null
public var copy_option_escape: GeneratedParserUtilBase.Parser? = null
public var copy_option_force_not_null: GeneratedParserUtilBase.Parser? = null
public var copy_option_force_null: GeneratedParserUtilBase.Parser? = null
public var copy_option_encoding: GeneratedParserUtilBase.Parser? = null
@JvmStatic
public fun overridesExt(
builder: PsiBuilder,
level: Int,
overrides: GeneratedParserUtilBase.Parser,
): Boolean = (this.overrides ?: overrides).parse(builder, level)
@JvmStatic
public fun columnConstraintExt(
builder: PsiBuilder,
level: Int,
column_constraint: GeneratedParserUtilBase.Parser,
): Boolean = (this.column_constraint ?: column_constraint).parse(builder, level)
@JvmStatic
public fun currentTimestampWithOptionalIntervalExt(
builder: PsiBuilder,
level: Int,
current_timestamp_with_optional_interval: GeneratedParserUtilBase.Parser,
): Boolean = (this.current_timestamp_with_optional_interval ?:
current_timestamp_with_optional_interval).parse(builder, level)
@JvmStatic
public fun defaultConstraintExt(
builder: PsiBuilder,
level: Int,
default_constraint: GeneratedParserUtilBase.Parser,
): Boolean = (this.default_constraint ?: default_constraint).parse(builder, level)
@JvmStatic
public fun typeNameExt(
builder: PsiBuilder,
level: Int,
type_name: GeneratedParserUtilBase.Parser,
): Boolean = (this.type_name ?: type_name).parse(builder, level)
@JvmStatic
public fun bindParameterExt(
builder: PsiBuilder,
level: Int,
bind_parameter: GeneratedParserUtilBase.Parser,
): Boolean = (this.bind_parameter ?: bind_parameter).parse(builder, level)
@JvmStatic
public fun tableConstraintExt(
builder: PsiBuilder,
level: Int,
table_constraint: GeneratedParserUtilBase.Parser,
): Boolean = (this.table_constraint ?: table_constraint).parse(builder, level)
@JvmStatic
public fun identityClauseExt(
builder: PsiBuilder,
level: Int,
identity_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.identity_clause ?: identity_clause).parse(builder, level)
@JvmStatic
public fun generatedClauseExt(
builder: PsiBuilder,
level: Int,
generated_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.generated_clause ?: generated_clause).parse(builder, level)
@JvmStatic
public fun smallIntDataTypeExt(
builder: PsiBuilder,
level: Int,
small_int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.small_int_data_type ?: small_int_data_type).parse(builder, level)
@JvmStatic
public fun intDataTypeExt(
builder: PsiBuilder,
level: Int,
int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.int_data_type ?: int_data_type).parse(builder, level)
@JvmStatic
public fun bigIntDataTypeExt(
builder: PsiBuilder,
level: Int,
big_int_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.big_int_data_type ?: big_int_data_type).parse(builder, level)
@JvmStatic
public fun numericDataTypeExt(
builder: PsiBuilder,
level: Int,
numeric_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.numeric_data_type ?: numeric_data_type).parse(builder, level)
@JvmStatic
public fun approximateNumericDataTypeExt(
builder: PsiBuilder,
level: Int,
approximate_numeric_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.approximate_numeric_data_type ?: approximate_numeric_data_type).parse(builder,
level)
@JvmStatic
public fun smallSerialDataTypeExt(
builder: PsiBuilder,
level: Int,
small_serial_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.small_serial_data_type ?: small_serial_data_type).parse(builder, level)
@JvmStatic
public fun serialDataTypeExt(
builder: PsiBuilder,
level: Int,
serial_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.serial_data_type ?: serial_data_type).parse(builder, level)
@JvmStatic
public fun bigSerialDataTypeExt(
builder: PsiBuilder,
level: Int,
big_serial_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.big_serial_data_type ?: big_serial_data_type).parse(builder, level)
@JvmStatic
public fun stringDataTypeExt(
builder: PsiBuilder,
level: Int,
string_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.string_data_type ?: string_data_type).parse(builder, level)
@JvmStatic
public fun uuidDataTypeExt(
builder: PsiBuilder,
level: Int,
uuid_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.uuid_data_type ?: uuid_data_type).parse(builder, level)
@JvmStatic
public fun dateDataTypeExt(
builder: PsiBuilder,
level: Int,
date_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.date_data_type ?: date_data_type).parse(builder, level)
@JvmStatic
public fun booleanDataTypeExt(
builder: PsiBuilder,
level: Int,
boolean_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.boolean_data_type ?: boolean_data_type).parse(builder, level)
@JvmStatic
public fun jsonDataTypeExt(
builder: PsiBuilder,
level: Int,
json_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.json_data_type ?: json_data_type).parse(builder, level)
@JvmStatic
public fun blobDataTypeExt(
builder: PsiBuilder,
level: Int,
blob_data_type: GeneratedParserUtilBase.Parser,
): Boolean = (this.blob_data_type ?: blob_data_type).parse(builder, level)
@JvmStatic
public fun intervalExpressionExt(
builder: PsiBuilder,
level: Int,
interval_expression: GeneratedParserUtilBase.Parser,
): Boolean = (this.interval_expression ?: interval_expression).parse(builder, level)
@JvmStatic
public fun withClauseAuxiliaryStmtExt(
builder: PsiBuilder,
level: Int,
with_clause_auxiliary_stmt: GeneratedParserUtilBase.Parser,
): Boolean = (this.with_clause_auxiliary_stmt ?: with_clause_auxiliary_stmt).parse(builder, level)
@JvmStatic
public fun deleteStmtLimitedExt(
builder: PsiBuilder,
level: Int,
delete_stmt_limited: GeneratedParserUtilBase.Parser,
): Boolean = (this.delete_stmt_limited ?: delete_stmt_limited).parse(builder, level)
@JvmStatic
public fun stringLiteralExt(
builder: PsiBuilder,
level: Int,
string_literal: GeneratedParserUtilBase.Parser,
): Boolean = (this.string_literal ?: string_literal).parse(builder, level)
@JvmStatic
public fun literalValueExt(
builder: PsiBuilder,
level: Int,
literal_value: GeneratedParserUtilBase.Parser,
): Boolean = (this.literal_value ?: literal_value).parse(builder, level)
@JvmStatic
public fun insertStmtExt(
builder: PsiBuilder,
level: Int,
insert_stmt: GeneratedParserUtilBase.Parser,
): Boolean = (this.insert_stmt ?: insert_stmt).parse(builder, level)
@JvmStatic
public fun conflictTargetExt(
builder: PsiBuilder,
level: Int,
conflict_target: GeneratedParserUtilBase.Parser,
): Boolean = (this.conflict_target ?: conflict_target).parse(builder, level)
@JvmStatic
public fun conflictUpdateExt(
builder: PsiBuilder,
level: Int,
conflict_update: GeneratedParserUtilBase.Parser,
): Boolean = (this.conflict_update ?: conflict_update).parse(builder, level)
@JvmStatic
public fun conflictAssignExt(
builder: PsiBuilder,
level: Int,
conflict_assign: GeneratedParserUtilBase.Parser,
): Boolean = (this.conflict_assign ?: conflict_assign).parse(builder, level)
@JvmStatic
public fun updateStmtLimitedExt(
builder: PsiBuilder,
level: Int,
update_stmt_limited: GeneratedParserUtilBase.Parser,
): Boolean = (this.update_stmt_limited ?: update_stmt_limited).parse(builder, level)
@JvmStatic
public fun returningClauseExt(
builder: PsiBuilder,
level: Int,
returning_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.returning_clause ?: returning_clause).parse(builder, level)
@JvmStatic
public fun alterTableRulesExt(
builder: PsiBuilder,
level: Int,
alter_table_rules: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_rules ?: alter_table_rules).parse(builder, level)
@JvmStatic
public fun alterTableRenameColumnExt(
builder: PsiBuilder,
level: Int,
alter_table_rename_column: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_rename_column ?: alter_table_rename_column).parse(builder, level)
@JvmStatic
public fun alterTableColumnAliasExt(
builder: PsiBuilder,
level: Int,
alter_table_column_alias: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_column_alias ?: alter_table_column_alias).parse(builder, level)
@JvmStatic
public fun alterTableDropColumnExt(
builder: PsiBuilder,
level: Int,
alter_table_drop_column: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_drop_column ?: alter_table_drop_column).parse(builder, level)
@JvmStatic
public fun alterTableAddConstraintExt(
builder: PsiBuilder,
level: Int,
alter_table_add_constraint: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_add_constraint ?: alter_table_add_constraint).parse(builder, level)
@JvmStatic
public fun typeClauseExt(
builder: PsiBuilder,
level: Int,
type_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.type_clause ?: type_clause).parse(builder, level)
@JvmStatic
public fun dataClauseExt(
builder: PsiBuilder,
level: Int,
data_clause: GeneratedParserUtilBase.Parser,
): Boolean = (this.data_clause ?: data_clause).parse(builder, level)
@JvmStatic
public fun alterTableAlterColumnExt(
builder: PsiBuilder,
level: Int,
alter_table_alter_column: GeneratedParserUtilBase.Parser,
): Boolean = (this.alter_table_alter_column ?: alter_table_alter_column).parse(builder, level)
@JvmStatic
public fun compoundSelectStmtExt(
builder: PsiBuilder,
level: Int,
compound_select_stmt: GeneratedParserUtilBase.Parser,
): Boolean = (this.compound_select_stmt ?: compound_select_stmt).parse(builder, level)
@JvmStatic
public fun extensionExprExt(
builder: PsiBuilder,
level: Int,
extension_expr: GeneratedParserUtilBase.Parser,
): Boolean = (this.extension_expr ?: extension_expr).parse(builder, level)
@JvmStatic
public fun windowFunctionExprExt(
builder: PsiBuilder,
level: Int,
window_function_expr: GeneratedParserUtilBase.Parser,
): Boolean = (this.window_function_expr ?: window_function_expr).parse(builder, level)
@JvmStatic
public fun booleanNotExpressionExt(
builder: PsiBuilder,
level: Int,
boolean_not_expression: GeneratedParserUtilBase.Parser,
): Boolean = (this.boolean_not_expression ?: boolean_not_expression).parse(builder, level)
@JvmStatic
public fun booleanLiteralExt(
builder: PsiBuilder,
level: Int,
boolean_literal: GeneratedParserUtilBase.Parser,
): Boolean = (this.boolean_literal ?: boolean_literal).parse(builder, level)
@JvmStatic
public fun jsonExpressionExt(
builder: PsiBuilder,
level: Int,
json_expression: GeneratedParserUtilBase.Parser,
): Boolean = (this.json_expression ?: json_expression).parse(builder, level)
@JvmStatic
public fun jsonaBinaryOperatorExt(
builder: PsiBuilder,
level: Int,
jsona_binary_operator: GeneratedParserUtilBase.Parser,
): Boolean = (this.jsona_binary_operator ?: jsona_binary_operator).parse(builder, level)
@JvmStatic
public fun jsonbBinaryOperatorExt(
builder: PsiBuilder,
level: Int,
jsonb_binary_operator: GeneratedParserUtilBase.Parser,
): Boolean = (this.jsonb_binary_operator ?: jsonb_binary_operator).parse(builder, level)
@JvmStatic
public fun extensionStmtExt(
builder: PsiBuilder,
level: Int,
extension_stmt: GeneratedParserUtilBase.Parser,
): Boolean = (this.extension_stmt ?: extension_stmt).parse(builder, level)
@JvmStatic
public fun copyStdinExt(
builder: PsiBuilder,
level: Int,
copy_stdin: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_stdin ?: copy_stdin).parse(builder, level)
@JvmStatic
public fun copyOptionExt(
builder: PsiBuilder,
level: Int,
copy_option: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option ?: copy_option).parse(builder, level)
@JvmStatic
public fun copyOptionFormatExt(
builder: PsiBuilder,
level: Int,
copy_option_format: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_format ?: copy_option_format).parse(builder, level)
@JvmStatic
public fun copyOptionFreezeExt(
builder: PsiBuilder,
level: Int,
copy_option_freeze: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_freeze ?: copy_option_freeze).parse(builder, level)
@JvmStatic
public fun copyOptionDelimiterExt(
builder: PsiBuilder,
level: Int,
copy_option_delimiter: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_delimiter ?: copy_option_delimiter).parse(builder, level)
@JvmStatic
public fun copyOptionNullExt(
builder: PsiBuilder,
level: Int,
copy_option_null: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_null ?: copy_option_null).parse(builder, level)
@JvmStatic
public fun copyOptionHeaderExt(
builder: PsiBuilder,
level: Int,
copy_option_header: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_header ?: copy_option_header).parse(builder, level)
@JvmStatic
public fun copyOptionQuoteExt(
builder: PsiBuilder,
level: Int,
copy_option_quote: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_quote ?: copy_option_quote).parse(builder, level)
@JvmStatic
public fun copyOptionEscapeExt(
builder: PsiBuilder,
level: Int,
copy_option_escape: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_escape ?: copy_option_escape).parse(builder, level)
@JvmStatic
public fun copyOptionForceNotNullExt(
builder: PsiBuilder,
level: Int,
copy_option_force_not_null: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_force_not_null ?: copy_option_force_not_null).parse(builder, level)
@JvmStatic
public fun copyOptionForceNullExt(
builder: PsiBuilder,
level: Int,
copy_option_force_null: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_force_null ?: copy_option_force_null).parse(builder, level)
@JvmStatic
public fun copyOptionEncodingExt(
builder: PsiBuilder,
level: Int,
copy_option_encoding: GeneratedParserUtilBase.Parser,
): Boolean = (this.copy_option_encoding ?: copy_option_encoding).parse(builder, level)
public fun reset(): Unit {
createElement = { PostgreSqlTypes.Factory.createElement(it) }
overrides = null
column_constraint = null
current_timestamp_with_optional_interval = null
default_constraint = null
type_name = null
bind_parameter = null
table_constraint = null
identity_clause = null
generated_clause = null
small_int_data_type = null
int_data_type = null
big_int_data_type = null
numeric_data_type = null
approximate_numeric_data_type = null
small_serial_data_type = null
serial_data_type = null
big_serial_data_type = null
string_data_type = null
uuid_data_type = null
date_data_type = null
boolean_data_type = null
json_data_type = null
blob_data_type = null
interval_expression = null
with_clause_auxiliary_stmt = null
delete_stmt_limited = null
string_literal = null
literal_value = null
insert_stmt = null
conflict_target = null
conflict_update = null
conflict_assign = null
update_stmt_limited = null
returning_clause = null
alter_table_rules = null
alter_table_rename_column = null
alter_table_column_alias = null
alter_table_drop_column = null
alter_table_add_constraint = null
type_clause = null
data_clause = null
alter_table_alter_column = null
compound_select_stmt = null
extension_expr = null
window_function_expr = null
boolean_not_expression = null
boolean_literal = null
json_expression = null
jsona_binary_operator = null
jsonb_binary_operator = null
extension_stmt = null
copy_stdin = null
copy_option = null
copy_option_format = null
copy_option_freeze = null
copy_option_delimiter = null
copy_option_null = null
copy_option_header = null
copy_option_quote = null
copy_option_escape = null
copy_option_force_not_null = null
copy_option_force_null = null
copy_option_encoding = null
}
public fun overrideSqlParser(): Unit {
SqlParserUtil.column_constraint = Parser { psiBuilder, i -> column_constraint?.parse(psiBuilder,
i) ?: PostgreSqlParser.column_constraint_real(psiBuilder, i) }
SqlParserUtil.default_constraint = Parser { psiBuilder, i ->
default_constraint?.parse(psiBuilder, i) ?:
PostgreSqlParser.default_constraint_real(psiBuilder, i) }
SqlParserUtil.type_name = Parser { psiBuilder, i -> type_name?.parse(psiBuilder, i) ?:
PostgreSqlParser.type_name_real(psiBuilder, i) }
SqlParserUtil.bind_parameter = Parser { psiBuilder, i -> bind_parameter?.parse(psiBuilder, i) ?:
PostgreSqlParser.bind_parameter_real(psiBuilder, i) }
SqlParserUtil.table_constraint = Parser { psiBuilder, i -> table_constraint?.parse(psiBuilder,
i) ?: PostgreSqlParser.table_constraint_real(psiBuilder, i) }
SqlParserUtil.generated_clause = Parser { psiBuilder, i -> generated_clause?.parse(psiBuilder,
i) ?: PostgreSqlParser.generated_clause_real(psiBuilder, i) }
SqlParserUtil.with_clause_auxiliary_stmt = Parser { psiBuilder, i ->
with_clause_auxiliary_stmt?.parse(psiBuilder, i) ?:
PostgreSqlParser.with_clause_auxiliary_stmt_real(psiBuilder, i) }
SqlParserUtil.delete_stmt_limited = Parser { psiBuilder, i ->
delete_stmt_limited?.parse(psiBuilder, i) ?:
PostgreSqlParser.delete_stmt_limited_real(psiBuilder, i) }
SqlParserUtil.string_literal = Parser { psiBuilder, i -> string_literal?.parse(psiBuilder, i) ?:
PostgreSqlParser.string_literal_real(psiBuilder, i) }
SqlParserUtil.literal_value = Parser { psiBuilder, i -> literal_value?.parse(psiBuilder, i) ?:
PostgreSqlParser.literal_value_real(psiBuilder, i) }
SqlParserUtil.insert_stmt = Parser { psiBuilder, i -> insert_stmt?.parse(psiBuilder, i) ?:
PostgreSqlParser.insert_stmt_real(psiBuilder, i) }
SqlParserUtil.update_stmt_limited = Parser { psiBuilder, i ->
update_stmt_limited?.parse(psiBuilder, i) ?:
PostgreSqlParser.update_stmt_limited_real(psiBuilder, i) }
SqlParserUtil.alter_table_rules = Parser { psiBuilder, i -> alter_table_rules?.parse(psiBuilder,
i) ?: PostgreSqlParser.alter_table_rules_real(psiBuilder, i) }
SqlParserUtil.compound_select_stmt = Parser { psiBuilder, i ->
compound_select_stmt?.parse(psiBuilder, i) ?:
PostgreSqlParser.compound_select_stmt_real(psiBuilder, i) }
SqlParserUtil.extension_expr = Parser { psiBuilder, i -> extension_expr?.parse(psiBuilder, i) ?:
PostgreSqlParser.extension_expr_real(psiBuilder, i) }
SqlParserUtil.extension_stmt = Parser { psiBuilder, i -> extension_stmt?.parse(psiBuilder, i) ?:
PostgreSqlParser.extension_stmt_real(psiBuilder, i) }
val currentCreateElement = SqlParserUtil.createElement
SqlParserUtil.createElement = {
try {
createElement(it)
} catch(e: AssertionError) {
currentCreateElement(it)
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy