MCPcopy
hub / github.com/gocraft/dbr / SessionRunner

Interface SessionRunner

dbr.go:88–100  ·  view source on GitHub ↗

SessionRunner can do anything that a Session can except start a transaction. Both Session and Tx implements this interface.

Source from the content-addressed store, hash-verified

86// SessionRunner can do anything that a Session can except start a transaction.
87// Both Session and Tx implements this interface.
88type SessionRunner interface {
89 Select(column ...interface{}) *SelectBuilder
90 SelectBySql(query string, value ...interface{}) *SelectBuilder
91
92 InsertInto(table string) *InsertBuilder
93 InsertBySql(query string, value ...interface{}) *InsertBuilder
94
95 Update(table string) *UpdateBuilder
96 UpdateBySql(query string, value ...interface{}) *UpdateBuilder
97
98 DeleteFrom(table string) *DeleteBuilder
99 DeleteBySql(query string, value ...interface{}) *DeleteBuilder
100}
101
102type Runner interface {
103 GetTimeout() time.Duration

Callers 27

TestNullTypesScanningFunction · 0.65
TestTransactionCommitFunction · 0.65
TestTransactionRollbackFunction · 0.65
TestCommonSQLInjectionsFunction · 0.65
TestBasicCRUDFunction · 0.65
TestTimeoutFunction · 0.65
TestMapsFunction · 0.65
BenchmarkLoadValuesFunction · 0.65
TestNullTypesScanningFunction · 0.65
TestTransactionCommitFunction · 0.65
TestTransactionRollbackFunction · 0.65

Implementers 2

Sessiondbr.go
Txtransaction.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…