-
Notifications
You must be signed in to change notification settings - Fork 492
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
feat: add duckdb dialect #696
Conversation
Signed-off-by: Damian Peckett <damian@pecke.tt>
7409481
to
b9505db
Compare
Thanks for contributing a PR, will review this over the next week or two. |
|
||
func (s *Duckdb) CreateTable(tableName string) string { | ||
q := ` | ||
CREATE SEQUENCE %s_id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much experience with duckdb, is this the recommended way to get an autoincrementing primary key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this time I'm hardly an expert but that seemed to be the main way to achieve this. You certainly don't have an AUTOINCREMENT
keyword on the column available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for putting this together. Looking forward to playing around with duckdb some more..
Thanks for putting up a PR 🎉 . |
This reverts commit fb7ca2d. # Conflicts: # cmd/goose/driver_duckdb.go
An attempt at adding DuckDB dialect support.