MCPcopy Create free account
hub / github.com/araddon/qlbridge / Init

Method Init

schema/datasource.go:37–37  ·  view source on GitHub ↗

Init provides opportunity for those sources that require/ no configuration and introspect schema from their environment time to load pre-schema discovery

()

Source from the content-addressed store, hash-verified

35 // Init provides opportunity for those sources that require/ no configuration and
36 // introspect schema from their environment time to load pre-schema discovery
37 Init()
38 // Setup optional interface for getting the Schema injected during creation/starup.
39 // Since the Source is a singleton, stateful manager, it has a startup/shutdown process.
40 Setup(*Schema) error

Callers 10

TestRegisterSchemaFunction · 0.65
TestRegistryFunction · 0.65
CreateDefaultRegistryFunction · 0.65
RegisterSourceAsSchemaFunction · 0.65
InitMethod · 0.65
TestSqlDialectInitFunction · 0.65
TestFilterDialectInitFunction · 0.65
TestExprDialectInitFunction · 0.65
TestJsonDialectInitFunction · 0.65
initFunction · 0.65

Implementers 9

CsvDataSourcedatasource/csv.go
SchemaDbdatasource/schemadb.go
JsonSourcedatasource/json.go
Sourcedatasource/mockcsv/mockcsv.go
storeSourcedatasource/files/storesource.go
FileSourcedatasource/files/filesource.go
StaticDataSourcedatasource/membtree/btree.go
Sourcedatasource/sqlite/source.go
MemDbdatasource/memdb/db.go

Calls

no outgoing calls

Tested by 6

TestRegisterSchemaFunction · 0.52
TestRegistryFunction · 0.52
TestSqlDialectInitFunction · 0.52
TestFilterDialectInitFunction · 0.52
TestExprDialectInitFunction · 0.52
TestJsonDialectInitFunction · 0.52