2026-06-24 19:49:01 +08:00

30 lines
652 B
Go

package mysql
import (
"context"
"database/sql"
)
const (
bizTypeResourceGrant = "resource_grant"
bizTypeResourceGrantRevoke = "resource_grant_revoke"
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)
}