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: support sequences #123

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

DifferentialOrange
Copy link
Member

@DifferentialOrange DifferentialOrange commented Mar 20, 2024

This patch adds the support of sequences through new schema section, as well as proper support of sequence option for indexes. Before this patch, ddl had half-baked support of sequences: one could provide sequence as sequence name in indexes and it would be created. This approach was broken in basic set_schema(get_schema) scenario since there wasn't any sequences support in get. Current design is inspired by existing "not implemented yet" tests and documentation examples.

Closes #122

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-122-sequences branch 3 times, most recently from 5b951c5 to 39bf083 Compare March 21, 2024 11:28
@DifferentialOrange DifferentialOrange marked this pull request as ready for review March 21, 2024 11:28
ddl.lua Show resolved Hide resolved
ddl.lua Show resolved Hide resolved
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-122-sequences branch from 39bf083 to 4b02448 Compare March 28, 2024 07:49
This patch adds the support of sequences through new schema section,
as well as proper support of sequence option for indexes. Before this
patch, ddl had half-baked support of sequences: one could provide
`sequence` as sequence name in indexes and it would be created. This
approach was broken in basic `set_schema(get_schema)` scenario since
there wasn't any sequences support in get. Current design is inspired
by existing "not implemented yet" tests and documentation examples.

Closes #122
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-122-sequences branch from 4b02448 to 57c3242 Compare March 28, 2024 07:51
@DifferentialOrange DifferentialOrange merged commit dd59559 into master Apr 10, 2024
8 checks passed
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-122-sequences branch April 10, 2024 11:03
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.

sequence info is missing in schema returned from get_schema
2 participants