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

feat: add support for managing multiple databases #307

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

NoyException
Copy link
Contributor

No description provided.

@NoyException NoyException force-pushed the noy/feat-multiple-databases branch from 65100a7 to 041f248 Compare December 23, 2024 05:46
@NoyException NoyException marked this pull request as ready for review December 23, 2024 10:37
Copy link
Contributor

@TianyuZhang1214 TianyuZhang1214 left a 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.

catalog/provider.go Outdated Show resolved Hide resolved
Copy link
Contributor

@TianyuZhang1214 TianyuZhang1214 left a 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__" {
Copy link
Contributor

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) {
Copy link
Contributor

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
Copy link
Contributor

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.

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.

3 participants