文档首页
X DevAPI 用户指南
下载本手册
PDF (US Ltr) - 1.4Mb
PDF (A4) - 1.4Mb


X DevAPI 用户指南  /  CRUD EBNF 定义  /  会话对象和函数

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.