11.1 会话对象和函数

会话

此对象在 EBNF 中显示的语法为

Session
    ::= '.getSchema(' StringLiteral ')'
        | '.getSchemas()'
        | '.createSchema(' StringLiteral ')'
        | '.dropSchema(' StringLiteral ')'
        | '.getDefaultSchema()'
        | '.startTransaction()'
        | '.commit()'
        | '.rollback()'
        | '.setSavepoint()'                    
        | '.setSavepoint(' StringLiteral ')'
        | '.releaseSavePoint(' StringLiteral ')'
        | '.rollbackTo(' StringLiteral ')'
        | '.close()'
        | SqlExecute

图 11.1 会话

Image shows the syntax in EBNF form as described in the preceding text.

SqlExecute

此函数在 EBNF 中显示的语法为

SqlExecute
    ::= '.sql(' SqlStatementStr ')'
        ( '.bind(' Literal (',' Literal)* ')')*
        ( '.execute()' )?

图 11.2 SqlExecute

Image shows the syntax in EBNF form as described in the preceding text.

SQLPlaceholderValues

此函数在 EBNF 中显示的语法为

SQLPlaceholderValues
  ::= '{' SQLPlaceholderName ':' ( SQLLiteral ) '}'

图 11.3 SQLPlaceholderValues

Image shows the syntax in EBNF form as described in the preceding text.

SQLPlaceholderName

此函数在 EBNF 中显示的语法为

SQLPlaceholderName
  ::= '?'

图 11.4 SQLPlaceholderName

Image shows the syntax in EBNF form as described in the preceding text.

SQLLiteral

此函数在 EBNF 中显示的语法为

SQLLiteral
  ::= '"' StringLiteral '"' | Number | Document

图 11.5 SQLLiteral

Image shows the syntax in EBNF form as described in the preceding text.