Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Drop / create table #845

Merged
erizocosmico merged 12 commits into src-d:master from dolthub:ld-master
Oct 22, 2019
Merged

Drop / create table #845

erizocosmico merged 12 commits into src-d:master from dolthub:ld-master
Oct 22, 2019

Conversation

@zachmu
Copy link
Contributor

@zachmu zachmu commented Oct 17, 2019

Implemented DROP TABLE. Also:

  • 24-bit integers
  • Primary key attribute for columns
  • Deprecated Alterable in favor of TableCreator. Primary difference is the new interface takes a context argument.

zachmu added 8 commits October 17, 2019 11:18
Signed-off-by: Zach Musgrave <zach@liquidata.co>
...rface for create table statements, deprecating Alterable (which only supports Create)
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
...E TABLE with an empty table spec prior to this change.
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Drop and create table support, as well as support for 24-bit integers.
@zachmu zachmu requested a review from a team as a code owner October 17, 2019 18:40
Copy link
Contributor

@erizocosmico erizocosmico left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! Overall it looks really good, just some minor nitpicks and it's good to merge.

Copy link
Contributor

@agarciamontoro agarciamontoro left a comment
edited
Loading

Choose a reason for hiding this comment

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

Great work, thank you for the contribution!

I only miss an end-to-end test for the new Drop table feature. Something simple in engine.go to check that a DROP TABLE statement does indeed drop the specified table.

zachmu added 2 commits October 18, 2019 16:54
...omments.
Signed-off-by: Zach Musgrave <zach@liquidata.co>
PR feedback: added engine tests, removed Alterable interface, added comments.
Copy link
Contributor

@agarciamontoro agarciamontoro left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, they look great.
But Travis is failing now because there is still a reference to Alterable in memory/database_test.go. Could you remove it?

zachmu added 2 commits October 21, 2019 09:34
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Fixed test error caused by deleting Alterable interface.
Copy link
Contributor Author

zachmu commented Oct 21, 2019

Oops, sorry about that. All fixed now, PTAL.

agarciamontoro reacted with hooray emoji

@erizocosmico erizocosmico merged commit 6f000e2 into src-d:master Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers

@erizocosmico erizocosmico erizocosmico approved these changes

@agarciamontoro agarciamontoro agarciamontoro approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /