Skip to content

Allow usage of different schemas for documents #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 9, 2019

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