type database/sql.Stmt
33 uses
database/sql (current package)
sql.go#L1594: func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L1595: var stmt *Stmt
sql.go#L1614: func (db *DB) Prepare(query string) (*Stmt, error) {
sql.go#L1618: func (db *DB) prepare(ctx context.Context, query string, strategy connReuseStrategy) (*Stmt, error) {
sql.go#L1635: func (db *DB) prepareDC(ctx context.Context, dc *driverConn, release func(error), cg stmtConnGrabber, query string) (*Stmt, error) {
sql.go#L1647: stmt := &Stmt{
sql.go#L2059: func (c *Conn) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2197: v []*Stmt
sql.go#L2372: func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2397: func (tx *Tx) Prepare(query string) (*Stmt, error) {
sql.go#L2417: func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt {
sql.go#L2420: return &Stmt{stickyErr: err}
sql.go#L2425: return &Stmt{stickyErr: errors.New("sql: Tx.Stmt: statement from different database used")}
sql.go#L2428: var parentStmt *Stmt
sql.go#L2442: return &Stmt{stickyErr: err}
sql.go#L2463: return &Stmt{stickyErr: err}
sql.go#L2470: txs := &Stmt{
sql.go#L2505: func (tx *Tx) Stmt(stmt *Stmt) *Stmt {
sql.go#L2603: type Stmt struct {
sql.go#L2625: parentStmt *Stmt
sql.go#L2643: func (s *Stmt) ExecContext(ctx context.Context, args ...any) (Result, error) {
sql.go#L2667: func (s *Stmt) Exec(args ...any) (Result, error) {
sql.go#L2691: func (s *Stmt) removeClosedStmtLocked() {
sql.go#L2718: func (s *Stmt) connStmt(ctx context.Context, strategy connReuseStrategy) (dc *driverConn, releaseConn func(error), ds *driverStmt, err error) {
sql.go#L2771: func (s *Stmt) prepareOnConnLocked(ctx context.Context, dc *driverConn) (*driverStmt, error) {
sql.go#L2785: func (s *Stmt) QueryContext(ctx context.Context, args ...any) (*Rows, error) {
sql.go#L2837: func (s *Stmt) Query(args ...any) (*Rows, error) {
sql.go#L2857: func (s *Stmt) QueryRowContext(ctx context.Context, args ...any) *Row {
sql.go#L2879: func (s *Stmt) QueryRow(args ...any) *Row {
sql.go#L2884: func (s *Stmt) Close() error {
sql.go#L2914: func (s *Stmt) finalClose() error {