MCPcopy Create free account
hub / github.com/bytebase/bytebase / Driver

Struct Driver

backend/plugin/db/pg/pg.go:47–57  ·  view source on GitHub ↗

Driver is the Postgres driver.

Source from the content-addressed store, hash-verified

45
46// Driver is the Postgres driver.
47type Driver struct {
48 config db.ConnectionConfig
49
50 db *sql.DB
51 sshClient *ssh.Client
52 // connectionString is the connection string registered by pgx.
53 // Unregister connectionString if we don't need it.
54 connectionString string
55 databaseName string
56 connectionCtx db.ConnectionContext
57}
58
59func newDriver() db.Driver {
60 return &Driver{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected