MCPcopy Create free account
hub / github.com/corestoreio/pkg / NewDB

Function NewDB

config/storage/db_client.go:100–162  ·  view source on GitHub ↗

NewDB creates a new database backed storage service. It creates three prepared statements which are getting automatically closed after an idle time and once used again, they get re-prepared. The database schema gets validated, but can also be disabled via options struct. Implements interface config.

(tbls *ddl.Tables, o DBOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

MustNewDBFunction · 0.85

Calls 10

runStateCheckersMethod · 0.95
TableMethod · 0.80
PlaceHolderMethod · 0.80
BuildValuesMethod · 0.80
ValidateMethod · 0.65
OrderByMethod · 0.45
SelectMethod · 0.45
WhereMethod · 0.45
ColumnMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected