MCPcopy Create free account
hub / github.com/apecloud/myduckserver / CommitTransaction

Method CommitTransaction

backend/session.go:118–129  ·  view source on GitHub ↗

CommitTransaction implements sql.TransactionSession.

(ctx *sql.Context, tx sql.Transaction)

Source from the content-addressed store, hash-verified

116 schema := provider.Pool().CurrentSchema(conn.ConnectionID)
117 if schema != "" {
118 logrus.Traceln("SessionBuilder: new session: current schema:", schema)
119 memSession.SetCurrentDatabase(schema)
120 }
121
122 return NewSession(memSession, provider, opts...), nil
123 }
124}
125
126var _ sql.TransactionSession = (*Session)(nil)
127var _ sql.PersistableSession = (*Session)(nil)
128var _ adapter.ConnectionHolder = (*Session)(nil)
129
130type Transaction struct {
131 memory.Transaction
132 tx *stdsql.Tx

Callers

nothing calls this directly

Calls 1

CloseTxnMethod · 0.95

Tested by

no test coverage detected