MCPcopy Create free account
hub / github.com/apecloud/myduckserver / Database

Method Database

catalog/provider.go:448–462  ·  view source on GitHub ↗

Database implements sql.DatabaseProvider.

(ctx *sql.Context, name string)

Source from the content-addressed store, hash-verified

446}
447
448func (prov *DatabaseProvider) Connector() *duckdb.Connector {
449 return prov.connector
450}
451
452func (prov *DatabaseProvider) Storage() *stdsql.DB {
453 return prov.storage
454}
455
456func (prov *DatabaseProvider) Pool() *ConnectionPool {
457 return prov.pool
458}
459
460func (prov *DatabaseProvider) DefaultCatalogName() string {
461 return prov.defaultCatalogName
462}
463
464func (prov *DatabaseProvider) DataDir() string {
465 return prov.dataDir

Callers

nothing calls this directly

Calls 3

GetCurrentCatalogFunction · 0.92
hasDatabaseFunction · 0.85
NewDatabaseFunction · 0.85

Tested by

no test coverage detected