MCPcopy
hub / github.com/micro/go-micro / postgresModel

Struct postgresModel

model/postgres/postgres.go:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16)
17
18type postgresModel struct {
19 db *sql.DB
20 mu sync.RWMutex
21 schemas map[string]*model.Schema
22 types map[reflect.Type]*model.Schema
23}
24
25// New creates a new Postgres model. DSN is a connection string
26// (e.g., "postgres://user:pass@localhost/dbname?sslmode=disable").

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected