Skip to content

Conversation

@heiglandreas
Copy link
Contributor

This commit adds support for using dedicated schemas for storing
documents. This way one can separate storage of documents of different
scopes do dedicated schemas per scope. THis allows for a better
structuring of the documents within the database.

This commit does not handle creating the schemas. The schema needs
to be available to the DocumentStore for this to work.

Basically this allows one to set the schema right within the table-name
by separating schema and tablename by a dot like this:
schemaname.tablename. The name will then be split on the dot and the
former part be used as schema-name, the later part as table-name. Any
table-prefixes will only be added to the table name, not to the scheme.

This commit adds support for using dedicated schemas for storing
documents. This way one can separate storage of documents of different
scopes do dedicated schemas per scope. THis allows for a better
structuring of the documents within the database.

This commit does **not** handle creating the schemas. The schema needs
to be available to the DocumentStore for this to work.

Basically this allows one to set the schema right within the table-name
by separating schema and tablename by a dot like this:
`schemaname.tablename`. The name will then be split on the dot and the
former part be used as schema-name, the later part as table-name. Any
table-prefixes will only be added to the table name, not to the scheme.
This adds the schema-enabling to all queries that target the tablename.
This commit adds the creation of the schema to the process of creating
the document store. So now the schema does not need to be already
available when the document store is created
@codeliner codeliner merged commit b4c7b04 into event-engine:master Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants