type database/sql.Stmt
42 uses
database/sql (current package)
sql.go#L1458: func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L1459: var stmt *Stmt
sql.go#L1478: func (db *DB) Prepare(query string) (*Stmt, error) {
sql.go#L1482: func (db *DB) prepare(ctx context.Context, query string, strategy connReuseStrategy) (*Stmt, error) {
sql.go#L1499: func (db *DB) prepareDC(ctx context.Context, dc *driverConn, release func(error), cg stmtConnGrabber, query string) (*Stmt, error) {
sql.go#L1511: stmt := &Stmt{
sql.go#L1916: func (c *Conn) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2055: v []*Stmt
sql.go#L2230: func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2252: func (tx *Tx) Prepare(query string) (*Stmt, error) {
sql.go#L2271: func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt {
sql.go#L2274: return &Stmt{stickyErr: err}
sql.go#L2279: return &Stmt{stickyErr: errors.New("sql: Tx.Stmt: statement from different database used")}
sql.go#L2282: var parentStmt *Stmt
sql.go#L2296: return &Stmt{stickyErr: err}
sql.go#L2317: return &Stmt{stickyErr: err}
sql.go#L2324: txs := &Stmt{
sql.go#L2355: func (tx *Tx) Stmt(stmt *Stmt) *Stmt {
sql.go#L2444: type Stmt struct {
sql.go#L2466: parentStmt *Stmt
sql.go#L2484: func (s *Stmt) ExecContext(ctx context.Context, args ...interface{}) (Result, error) {
sql.go#L2513: func (s *Stmt) Exec(args ...interface{}) (Result, error) {
sql.go#L2537: func (s *Stmt) removeClosedStmtLocked() {
sql.go#L2562: func (s *Stmt) connStmt(ctx context.Context, strategy connReuseStrategy) (dc *driverConn, releaseConn func(error), ds *driverStmt, err error) {
sql.go#L2615: func (s *Stmt) prepareOnConnLocked(ctx context.Context, dc *driverConn) (*driverStmt, error) {
sql.go#L2629: func (s *Stmt) QueryContext(ctx context.Context, args ...interface{}) (*Rows, error) {
sql.go#L2684: func (s *Stmt) Query(args ...interface{}) (*Rows, error) {
sql.go#L2704: func (s *Stmt) QueryRowContext(ctx context.Context, args ...interface{}) *Row {
sql.go#L2723: func (s *Stmt) QueryRow(args ...interface{}) *Row {
sql.go#L2728: func (s *Stmt) Close() error {
sql.go#L2758: func (s *Stmt) finalClose() error {
github.com/Masterminds/squirrel
stmtcacher.go#L13: Prepare(query string) (*sql.Stmt, error)
stmtcacher.go#L33: cache map[string]*sql.Stmt
stmtcacher.go#L39: func (sc *StmtCache) Prepare(query string) (*sql.Stmt, error) {
stmtcacher_ctx.go#L16: PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
stmtcacher_ctx.go#L31: return &StmtCache{prep: prep, cache: make(map[string]*sql.Stmt)}
stmtcacher_ctx.go#L43: func (sc *StmtCache) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) {
golang.org/x/pkgsite/internal/database
database.go#L136: func (db *DB) Prepare(ctx context.Context, query string) (*sql.Stmt, error) {
database.go#L341: prepare := func(n int) (*sql.Stmt, error) {
database.go#L345: var stmt *sql.Stmt
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |