MCPcopy
hub / github.com/dosco/graphjin / cloneDBContextForReload

Function cloneDBContextForReload

core/api.go:1355–1369  ·  view source on GitHub ↗
(ctx *dbContext)

Source from the content-addressed store, hash-verified

1353}
1354
1355func cloneDBContextForReload(ctx *dbContext) *dbContext {
1356 if ctx == nil {
1357 return nil
1358 }
1359 return &dbContext{
1360 name: ctx.name,
1361 db: ctx.db,
1362 dbtype: ctx.dbtype,
1363 nano: ctx.nano,
1364 dbinfo: ctx.dbinfo,
1365 schema: ctx.schema,
1366 qcodeCompiler: ctx.qcodeCompiler,
1367 psqlCompiler: ctx.psqlCompiler,
1368 }
1369}
1370
1371// SetOptions replaces the options slice so the next Reload picks them up.
1372func (g *GraphJin) SetOptions(opts ...Option) {

Calls

no outgoing calls

Tested by

no test coverage detected