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.