type github.com/go-pg/pg/v10.Stmt
27 uses
github.com/go-pg/pg/v10 (current package)
base.go#L584: func (db *baseDB) Prepare(q string) (*Stmt, error) {
stmt.go#L17: type Stmt struct {
stmt.go#L26: func prepareStmt(db *baseDB, q string) (*Stmt, error) {
stmt.go#L27: stmt := &Stmt{
stmt.go#L41: func (stmt *Stmt) prepare(ctx context.Context, q string) error {
stmt.go#L67: func (stmt *Stmt) withConn(c context.Context, fn func(context.Context, *pool.Conn) error) error {
stmt.go#L79: func (stmt *Stmt) Exec(params ...interface{}) (Result, error) {
stmt.go#L84: func (stmt *Stmt) ExecContext(c context.Context, params ...interface{}) (Result, error) {
stmt.go#L88: func (stmt *Stmt) exec(ctx context.Context, params ...interface{}) (Result, error) {
stmt.go#L122: func (stmt *Stmt) ExecOne(params ...interface{}) (Result, error) {
stmt.go#L127: func (stmt *Stmt) ExecOneContext(c context.Context, params ...interface{}) (Result, error) {
stmt.go#L131: func (stmt *Stmt) execOne(c context.Context, params ...interface{}) (Result, error) {
stmt.go#L144: func (stmt *Stmt) Query(model interface{}, params ...interface{}) (Result, error) {
stmt.go#L149: func (stmt *Stmt) QueryContext(c context.Context, model interface{}, params ...interface{}) (Result, error) {
stmt.go#L153: func (stmt *Stmt) query(ctx context.Context, model interface{}, params ...interface{}) (Result, error) {
stmt.go#L187: func (stmt *Stmt) QueryOne(model interface{}, params ...interface{}) (Result, error) {
stmt.go#L192: func (stmt *Stmt) QueryOneContext(c context.Context, model interface{}, params ...interface{}) (Result, error) {
stmt.go#L196: func (stmt *Stmt) queryOne(c context.Context, model interface{}, params ...interface{}) (Result, error) {
stmt.go#L214: func (stmt *Stmt) Close() error {
stmt.go#L229: func (stmt *Stmt) extQuery(
stmt.go#L251: func (stmt *Stmt) extQueryData(
stmt.go#L278: func (stmt *Stmt) closeStmt() error {
tx.go#L34: stmts []*Stmt
tx.go#L114: func (tx *Tx) Stmt(stmt *Stmt) *Stmt {
tx.go#L117: return &Stmt{stickyErr: err}
tx.go#L128: func (tx *Tx) Prepare(q string) (*Stmt, error) {