YSBZ%#ͩ
w HPSN42-$PNNPOͱ͍͏TRM%#ͷίϯςΩετͳ͠ϝιο
υΛΠϯλϑΣʔεԽ͍ͯ͠Δ
w YSBZ%#શ෦DUY͖ͰTRM%#ͷDUYϝιουΛ࣮͍ͯ͠Δ
w ͭ·ΓΠϯλϑΣʔε͕ద߹͠ͳ͍ʜ
type SQLCommon interface {
Exec(query string, args ...interface{}) (sql.Result, error)
Prepare(query string) (*sql.Stmt, error)
Query(query string, args ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...interface{}) *sql.Row
}
package xray
func (db *DB) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
func (db *DB) Prepare(ctx context.Context, query string) (*Stmt, error)
func (db *DB) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
func (db *DB) QueryRow(ctx context.Context, query string, args ...interface{}) *sql.Row
HPSN
YSBZ