Skip to content

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Mar 18, 2024

Table Options are now parsed as structs, so we can read/use some of the variables.
Character Sets, Collations, Create Table, TableSpec, etc. have been refactored.

Additionally, this PR adds support to parse and use the auto_increment table option.

TODO:

  • CREATE TABLE ... LIKE ... needs to preserve table opts, like comments
  • alter table add column ... auto_increment does not work when there are already rows

Companion PR: dolthub/vitess#322

@jycor jycor marked this pull request as draft March 18, 2024 17:16
@jycor jycor marked this pull request as ready for review March 19, 2024 00:12
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jycor jycor changed the title refactor and parse table options refactor and parse table options, support auto_increment table option Mar 19, 2024
@jycor jycor merged commit d678460 into main Mar 20, 2024
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