Spec-Zone.ru › MySQL Connectors 1.0

11.2 Объекты и функции схемы

Схема

Синтаксис этой функции, представленный в EBNF, таков:

Schema
    ::= '.getName()'
        | '.existsInDatabase()'
        | '.getSession()'
        | '.getCollection(' StringLiteral ')'
        | '.getCollections()'
        | '.getCollectionAsTable(' StringLiteral ')'
        | '.dropCollection(' StringLiteral ')'
        | '.getTable(' StringLiteral ')'
        | '.getTables()'
        | '.createCollection(' StringLiteral ')'

Рисунок 11.6 Схема

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

Коллекция

Синтаксис этой функции, представленный в EBNF, таков:

Collection
    ::= '.getSchema()'
        | '.getName()'
        | '.getSession()'
        | '.existsInDatabase()'
        | '.replaceOne(' DocumentId ',' DocumentOrJSON  ')'
        | '.addOrReplaceOne(' DocumentId ',' DocumentOrJSON  ')'
        | '.getOne(' DocumentId ')'
        | '.removeOne(' DocumentId ')'
        | CollectionFindFunction
        | CollectionModifyFunction
        | CollectionAddFunction
        | CollectionRemoveFunction
        | CollectionCreateIndex
        | CollectionDropIndex

Рисунок 11.7 Коллекция

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

Таблица

Синтаксис этой функции, представленный в EBNF, таков:

Table
    ::= '.getSchema()'
        | '.getName()'
        | '.getSession()'
        | '.existsInDatabase()'
        | '.isView()'
        | TableSelectFunction
        | TableUpdateFunction
        | TableInsertFunction
        | TableDeleteFunction

Рисунок 11.8 Таблица

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

© 2025 Oracle
Licensed under the GPLv2 License.
https://docs.oracle.com/cd/E17952_01/x-devapi-userguide-en/crud-ebnf-schema-objects-and-functions.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API