• Home
  • Raw
  • Download

Lines Matching defs:fakeConn

135 type fakeConn struct {  struct
136 db *fakeDB // where to return ourselves to
138 currTx *fakeTx
142 line int64
145 mu sync.Mutex
146 stmtsMade int
147 stmtsClosed int
148 numPrepare int
151 bad bool
152 stickyBad bool
154 skipDirtySession bool // tests that use Conn should set this to true.
158 dirtySession bool
162 waiter func(context.Context)
165 func (c *fakeConn) touchMem() {
169 func (c *fakeConn) incrStat(v *int) {
340 func (c *fakeConn) isBad() bool {
355 func (c *fakeConn) isDirtyAndMark() bool {
370 func (c *fakeConn) Begin() (driver.Tx, error) {
387 func setHookpostCloseConn(fn func(*fakeConn, error)) {
401 func (c *fakeConn) ResetSession(ctx context.Context) error {
412 func (c *fakeConn) IsValid() bool {
416 func (c *fakeConn) Close() (err error) {
461 func (c *fakeConn) Exec(query string, args []driver.Value) (driver.Result, error) {
466 …) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) {
478 func (c *fakeConn) Query(query string, args []driver.Value) (driver.Rows, error) {
483 …n) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) {
502 func (c *fakeConn) prepareSelect(stmt *fakeStmt, parts []string) (*fakeStmt, error) {
537 func (c *fakeConn) prepareCreate(stmt *fakeStmt, parts []string) (*fakeStmt, error) {
556 … *fakeConn) prepareInsert(ctx context.Context, stmt *fakeStmt, parts []string) (*fakeStmt, error) {
622 func (c *fakeConn) Prepare(query string) (driver.Stmt, error) {
626 func (c *fakeConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) {