MCPcopy
hub / github.com/spacecloud-io/space-cloud / SQL

Struct SQL

gateway/modules/crud/sql/sql.go:24–37  ·  view source on GitHub ↗

SQL holds the sql db object

Source from the content-addressed store, hash-verified

22
23// SQL holds the sql db object
24type SQL struct {
25 lock sync.RWMutex
26 enabled bool
27 queryFetchLimit *int64
28 connection string
29 client *sqlx.DB
30 dbType string
31 name string // logical db name or schema name according to the database type
32 driverConf config.DriverConfig
33 connRetryCloserChan chan struct{}
34
35 // Auth module
36 aesKey []byte
37}
38
39// Init initialises a new sql instance
40func Init(dbType model.DBType, enabled bool, connection string, dbName string, driverConf config.DriverConfig) (s *SQL, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected