11.5表CRUD功能

tableselectfunction.

table.select()collection.find()使用不同的方法进行排序结果。table.select()遵循SQL语言命名并调用排序方法Orderby()collection.find()才不是。使用方法种类()对返回的结果进行排序collection.find()。与SQL标准的接近被认为比此处的API均匀性更重要。

EBNF中显示此函数的语法是:

tableselectfunction :: ='.select('projectedsearchexprstrllllllllllllllllllist?')'('where('searchconditionstr')')?('.groupby('searchexprstrlist')')?('.having('searchconditionstr')')?(''.orderby('sortexprstrlist')')?('.limit('numberofrows')'('.offset('numberofrows')')?)?('.lockexclusive('lockcontention')'|'.lockshared('lockcontention')')?('bind('(placeUrtfalues)')')')*('.execute()')?

图11.15 TableselectFunction.

图像显示了如前文本中所述的EBNF形式中的语法。

tableinsertfunction.

EBNF中显示此函数的语法是:

tableinsertfunction :: ='.insert('(tablefields)?''''''''''''')(''文字)*')'')')+('.execute()')?

图11.16 tableinsertfunction.

图像显示了如前文本中所述的EBNF形式中的语法。

tableUpdateFunction.

EBNF中显示此函数的语法是:

tableUpdateFunction :: ='.update()'('set('tablefield','exprorliteral')')')+'.where('searchconditionstr')'('.ordborby('sortexprstrlist')')?('.Limit('numberofrows')')?('bind('(placeUrtfalues)')')')*('.execute()')?

图11.17 TableUpdateFunction.

图像显示了如前文本中所述的EBNF形式中的语法。

桌面功能

EBNF中显示此函数的语法是:

tablecentefunction :: ='.delete()''。位置('searchconditionstr')'('.orderby('sortexprstrlist')')?('.Limit('numberofrows')')?('bind('(placeUrtfalues)')')')*('.execute()')?

图11.18 TableCeletefunction.

图像显示了如前文本中所述的EBNF形式中的语法。