2026-06-23 11:53:00 +08:00

29 lines
597 B
Go

package mysql
import (
"context"
"database/sql"
)
const (
bizTypeResourceGrant = "resource_grant"
bizTypeResourceShopPurchase = "resource_shop_purchase"
resourceOutboxAsset = "RESOURCE"
)
type scanTarget interface {
Scan(dest ...any) error
}
type sqlRowQuerier interface {
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
}
type sqlQuerier interface {
QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
}
type sqlExecer interface {
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
}