Skip to content
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

ddl.get_schema() must be workable in trigger functions #58

Open
no1seman opened this issue Mar 31, 2021 · 2 comments
Open

ddl.get_schema() must be workable in trigger functions #58

no1seman opened this issue Mar 31, 2021 · 2 comments

Comments

@no1seman
Copy link
Contributor

According to rule #3: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_txn_management/ we can't use space_object:format() from any kind of transactional triggers, but in some cases, for example wen resolving conflicts we need to get space format. ddl.get_schema() or similar new method must be callable from on_commit, on_rollback, before_replace, on_replace triggers functions.

@Totktonada
Copy link
Member

Now the ddl.get_schema() function collects the schema from the space format. So, it seems, this task will be resolved, when we'll implement support of external information schema storage.

@no1seman
Copy link
Contributor Author

no1seman commented Oct 1, 2021

Seems that if we will have all schema data consistently cached - than there will no any limitations to use ddl methods even inside triggers and transactons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants