MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewChain

Function NewChain

sqlchain/chain.go:136–138  ·  view source on GitHub ↗

NewChain creates a new sql-chain struct.

(c *Config)

Source from the content-addressed store, hash-verified

134
135// NewChain creates a new sql-chain struct.
136func NewChain(c *Config) (chain *Chain, err error) {
137 return NewChainWithContext(context.Background(), c)
138}
139
140// NewChainWithContext creates a new sql-chain struct with context.
141func NewChainWithContext(ctx context.Context, c *Config) (chain *Chain, err error) {

Callers 2

NewDatabaseFunction · 0.92
TestMultiChainFunction · 0.70

Calls 1

NewChainWithContextFunction · 0.70

Tested by 1

TestMultiChainFunction · 0.56