package profileRepository import ( "context" "database/sql" "github.com/jmoiron/sqlx" ) // ---------------------------------------- // COMMON // ---------------------------------------- type pgDBInstance interface { GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) }