Sql_ast
type sqlVarToken = string Cobol_common.with_loc
val compare_sqlVarToken :
sqlVarToken ->
sqlVarToken ->
Ppx_deriving_runtime.int
type cobolVarId = string Cobol_common.with_loc
val compare_cobolVarId : cobolVarId -> cobolVarId -> Ppx_deriving_runtime.int
type literal =
| LiteralVar of variable
| LiteralNum of string Cobol_common.with_loc
| LiteralStr of string Cobol_common.with_loc
| LiteralDot of string Cobol_common.with_loc list
type sql_token =
| SqlInstr of string
| SqlVarToken of variable
| SqlLit of literal
| SqlQuery of sql_query
| SqlEquality of sql_equal
| SqlSearchCondition of search_condition
and sql_instruction = sql_token list
and complex_literal =
| SqlCompLit of literal
| SqlCompAs of literal * sqlVarToken
| SqlCompFun of sqlVarToken * sql_op list
| SqlCompStar
and esql_instuction =
| At of variable * esql_instuction
| Sql of sql_instruction
| Begin
| BeginDeclare
| Exeption of try_block
| EndDeclare
| StartTransaction
| Whenever of whenever_condition * whenever_continuation
| Include of sqlVarToken
| Connect of connect_syntax
| Rollback of rb_work_or_tran option * rb_args option
| Commit of rb_work_or_tran option * bool
| Savepoint of variable
| SelectInto of {
vars : cobol_var list;
select : sql_select;
select_options : sql_select_option list;
}
| DeclareTable of literal * (sqlVarToken * sql_type) list
| DeclareCursor of cursor
| Prepare of sqlVarToken * sql_instruction
| ExecuteImmediate of sql_instruction
| ExecuteIntoUsing of {
executed_string : sqlVarToken;
opt_into_hostref_list : cobol_var list option;
opt_using_hostref_list : cobol_var list option;
}
| Disconnect of variable option
| DisconnectAll
| Open of sqlVarToken * cobol_var list option
| Close of sqlVarToken
| Fetch of sql_instruction * cobol_var list
| Insert of table * value list
| Delete of sql_instruction
| Update of sqlVarToken * sql_update * update_arg option
| Ignore of sql_instruction
and cursor =
| DeclareCursorSql of sqlVarToken * sql_query
| DeclareCursorVar of sqlVarToken * variable
| DeclareCursorWhithHold of sqlVarToken * sql_query
and sql_query =
| SelectUnion of sql_query * sql_query
| SelectExcept of sql_query * sql_query
| SelectIntersect of sql_query * sql_query
| SelectQuery of sql_select * sql_select_option list
and sql_select_option =
| From of from_stm
| Where of search_condition
| OrderBy of sql_orderBy list
| GroupBy of literal list
| Having of search_condition
and from_stm = table_ref list
and sql_select = sql_op list
and sql_update = sql_equal list
and sql_equal = sqlVarToken * sql_op
and search_condition =
| WhereConditionOr of search_condition * search_condition
| WhereConditionAnd of search_condition * search_condition
| WhereConditionNot of search_condition
| WhereConditionCompare of sql_compare
| WhereConditionIn of sql_condition_in
| WhereConditionBetween of between_condition
| WhereConditionIsNull of variable
and sql_compare =
| CompareQuery of complex_literal * comp_operator * sql_instruction
| CompareLit of complex_literal * comp_operator * complex_literal
val compare_sql_instruction :
sql_instruction ->
sql_instruction ->
Ppx_deriving_runtime.int
val compare_complex_literal :
complex_literal ->
complex_literal ->
Ppx_deriving_runtime.int
val compare_esql_instuction :
esql_instuction ->
esql_instuction ->
Ppx_deriving_runtime.int
val compare_sql_exception :
sql_exception ->
sql_exception ->
Ppx_deriving_runtime.int
val compare_rb_work_or_tran :
rb_work_or_tran ->
rb_work_or_tran ->
Ppx_deriving_runtime.int
val compare_connect_syntax :
connect_syntax ->
connect_syntax ->
Ppx_deriving_runtime.int
val compare_whenever_condition :
whenever_condition ->
whenever_condition ->
Ppx_deriving_runtime.int
val compare_whenever_continuation :
whenever_continuation ->
whenever_continuation ->
Ppx_deriving_runtime.int
val compare_update_arg : update_arg -> update_arg -> Ppx_deriving_runtime.int
val compare_sql_select_option :
sql_select_option ->
sql_select_option ->
Ppx_deriving_runtime.int
val compare_join_option :
join_option ->
join_option ->
Ppx_deriving_runtime.int
val compare_sql_orderBy :
sql_orderBy ->
sql_orderBy ->
Ppx_deriving_runtime.int
val compare_sql_select : sql_select -> sql_select -> Ppx_deriving_runtime.int
val compare_sql_update : sql_update -> sql_update -> Ppx_deriving_runtime.int
val compare_search_condition :
search_condition ->
search_condition ->
Ppx_deriving_runtime.int
val compare_between_condition :
between_condition ->
between_condition ->
Ppx_deriving_runtime.int
val compare_sql_condition_in :
sql_condition_in ->
sql_condition_in ->
Ppx_deriving_runtime.int
val compare_sql_compare :
sql_compare ->
sql_compare ->
Ppx_deriving_runtime.int
val compare_comp_operator :
comp_operator ->
comp_operator ->
Ppx_deriving_runtime.int
val compare : esql_instuction -> esql_instuction -> Ppx_deriving_runtime.int
module Printer : sig ... end