Documentation
¶
Index ¶
- func BigintValue(v int64) expr.LiteralValue
- func BoolValue(v bool) expr.LiteralValue
- func ByteaValue(v []byte) expr.LiteralValue
- func DoubleValue(v float64) expr.LiteralValue
- func Dump(t testing.TB, v any)
- func DumpPebble(t testing.TB, pdb *pebble.DB)
- func Exec(db *database.Database, tx *database.Transaction, q string, ...) error
- func ExprList(t testing.TB, s string) expr.LiteralExprList
- func ExprRunner(t *testing.T, testfile string)
- func FunctionExpr(t testing.TB, name string, args ...expr.Expr) expr.Expr
- func Int64Ptr(n int64) *int64
- func IntegerValue(v int32) expr.LiteralValue
- func MakeRow(t testing.TB, s string) row.Row
- func MakeRowExpr(t testing.TB, s string) expr.Row
- func MakeRowExprs(t testing.TB, s ...string) []expr.Row
- func MakeRows(t testing.TB, s ...string) []row.Row
- func MustExec(t *testing.T, db *database.Database, tx *database.Transaction, q string, ...)
- func MustQuery(t *testing.T, db *database.Database, tx *database.Transaction, q string, ...) *statement.Result
- func NewEngine(t testing.TB) *kv.PebbleEngine
- func NewKey(t testing.TB, values ...types.Value) *tree.Key
- func NewTestConn(t testing.TB, db *database.Database) *database.Connection
- func NewTestDB(t testing.TB) *database.Database
- func NewTestTree(t testing.TB, namespace tree.Namespace) *tree.Tree
- func NewTestTx(t testing.TB) (*database.Database, *database.Transaction, func())
- func NullValue() expr.LiteralValue
- func ParseExpr(t testing.TB, s string) expr.Expr
- func ParseExprList(t testing.TB, s string) expr.LiteralExprList
- func ParseExprs(t testing.TB, s ...string) []expr.Expr
- func ParseNamedExpr(t testing.TB, s string, name ...string) expr.Expr
- func Query(db *database.Database, tx *database.Transaction, q string, ...) (*statement.Result, error)
- func RequireJSONArrayEq(t testing.TB, rows *sql.Rows, expected string)
- func RequireJSONEq(t testing.TB, rows *sql.Rows, expected ...string)
- func RequireRowEqual(t testing.TB, want, got row.Row)
- func RequireRowsEq(t *testing.T, raw string, rows *sql.Rows)
- func RequireRowsEqf(t *testing.T, raw string, rows *sql.Rows, msg string, args ...any)
- func RequireValueEqual(t testing.TB, want, got types.Value, msg string, args ...any)
- func SQLRowToColumnBuffer(t testing.TB, rows *sql.Rows) *row.ColumnBuffer
- func TestExpr(t testing.TB, exprStr string, env *environment.Environment, want types.Value, ...)
- func TextValue(v string) expr.LiteralValue
- type ResultStream
- type Rows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigintValue ¶ added in v0.17.0
func BigintValue(v int64) expr.LiteralValue
BigintValue creates a literal value of type Bigint.
func BoolValue ¶
func BoolValue(v bool) expr.LiteralValue
BoolValue creates a literal value of type Bool.
func ByteaValue ¶ added in v0.18.0
func ByteaValue(v []byte) expr.LiteralValue
ByteaValue creates a literal value of type bytea.
func DoubleValue ¶
func DoubleValue(v float64) expr.LiteralValue
DoubleValue creates a literal value of type Double.
func Exec ¶
func Exec(db *database.Database, tx *database.Transaction, q string, params ...environment.Param) error
func ExprRunner ¶
func IntegerValue ¶
func IntegerValue(v int32) expr.LiteralValue
IntegerValue creates a literal value of type Integer.
func MustExec ¶
func MustExec(t *testing.T, db *database.Database, tx *database.Transaction, q string, params ...environment.Param)
func NewTestConn ¶ added in v0.17.0
func ParseExprList ¶ added in v0.17.0
func ParseExprList(t testing.TB, s string) expr.LiteralExprList
func Query ¶
func Query(db *database.Database, tx *database.Transaction, q string, params ...environment.Param) (*statement.Result, error)
func RequireJSONArrayEq ¶ added in v0.17.0
func RequireRowsEqf ¶ added in v0.17.0
func RequireValueEqual ¶
func SQLRowToColumnBuffer ¶ added in v0.17.0
func TestExpr ¶
func TestExpr(t testing.TB, exprStr string, env *environment.Environment, want types.Value, fails bool)
func TextValue ¶
func TextValue(v string) expr.LiteralValue
TextValue creates a literal value of type Text.
Types ¶
type ResultStream ¶
func ParseResultStream ¶
func ParseResultStream(stream string) *ResultStream
func (*ResultStream) ParseObject ¶ added in v0.17.0
func (p *ResultStream) ParseObject() (row.Row, error)
type Rows ¶ added in v0.17.0
func (Rows) RequireEqualStream ¶ added in v0.17.0
func (r Rows) RequireEqualStream(t testing.TB, env *environment.Environment, st *stream.Stream)
Click to show internal directories.
Click to hide internal directories.