-
Notifications
You must be signed in to change notification settings - Fork 12
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 support for managing multiple databases #307
base: main
Are you sure you want to change the base?
Conversation
…-multiple-databases # Conflicts: # pgserver/server.go
65100a7
to
041f248
Compare
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.
Please add tests for this PR.
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.
Great job!
@@ -12,6 +12,9 @@ type InternalTable struct { | |||
} | |||
|
|||
func (it *InternalTable) QualifiedName() string { | |||
//if it.Schema == "__sys__" { |
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.
remove unnecessary comment here
if dbFile == "" { | ||
// in-memory mode, mainly for testing | ||
name = "memory" | ||
func NewDBProvider(defaultTimeZone, dataDir, defaultDB string) (prov *DatabaseProvider, err error) { |
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.
It seems we don't have strategy to scan all .db files under the data dir and attach them to current datbase?
connector *duckdb.Connector | ||
storage *stdsql.DB | ||
catalogName string | ||
pool *ConnectionPool // TODO(Noy): Merge into the provider |
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.
It's better to make it an issue of refactoring.
No description provided.