MCPcopy
hub / github.com/aarondl/sqlboiler / Interface

Interface Interface

drivers/interface.go:42–49  ·  view source on GitHub ↗

Interface abstracts either a side-effect imported driver or a binary that is called in order to produce the data required for generation.

Source from the content-addressed store, hash-verified

40// Interface abstracts either a side-effect imported driver or a binary
41// that is called in order to produce the data required for generation.
42type Interface interface {
43 // Assemble the database information into a nice struct
44 Assemble(config Config) (*DBInfo, error)
45 // Templates to add/replace for generation
46 Templates() (map[string]string, error)
47 // Imports to merge for generation
48 Imports() (importers.Collection, error)
49}
50
51// DBInfo is the database's table data and dialect.
52type DBInfo struct {

Callers 10

initDBInfoMethod · 0.65
TestBinaryDriverFunction · 0.65
DriverMainFunction · 0.65
initTemplatesMethod · 0.65
groupTemplatesFunction · 0.65
TemplatesMethod · 0.65
DriverMainFunction · 0.65
mergeDriverImportsMethod · 0.65
DriverMainFunction · 0.65

Implementers 6

testRegistrationDriverdrivers/registration_test.go
MSSQLDriverdrivers/sqlboiler-mssql/driver/mssql.g
MockDriverdrivers/mocks/mock.go
PostgresDriverdrivers/sqlboiler-psql/driver/psql.go
SQLiteDriverdrivers/sqlboiler-sqlite3/driver/sqlit
MySQLDriverdrivers/sqlboiler-mysql/driver/mysql.g

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…