Documentation ¶
Index ¶
- func Merge[T litsql.QueryClauseMerge](clauses ...T) T
- func TestExpression(t *testing.T, e litsql.Expression, output *TestBuffer, args ...any)
- func TestExpressionErrorIs(t *testing.T, e litsql.Expression, errIs error)
- func TestExpressionIsError(t *testing.T, e litsql.Expression)
- type TestBuffer
- type TestBufferOption
- type TestDialect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
func Merge[T litsql.QueryClauseMerge](clauses ...T) T
func TestExpression ¶
func TestExpression(t *testing.T, e litsql.Expression, output *TestBuffer, args ...any)
func TestExpressionErrorIs ¶
func TestExpressionErrorIs(t *testing.T, e litsql.Expression, errIs error)
func TestExpressionIsError ¶
func TestExpressionIsError(t *testing.T, e litsql.Expression)
Types ¶
type TestBuffer ¶
type TestBuffer struct {
// contains filtered or unexported fields
}
func NewTestBuffer ¶
func NewTestBuffer(options ...TestBufferOption) *TestBuffer
func (*TestBuffer) Output ¶
func (b *TestBuffer) Output() string
func (*TestBuffer) OutputNL ¶
func (b *TestBuffer) OutputNL() string
func (*TestBuffer) Write ¶
func (b *TestBuffer) Write(f string, args ...any)
func (*TestBuffer) WriteIndent ¶
func (b *TestBuffer) WriteIndent(amount int)
func (*TestBuffer) WriteNewLine ¶
func (b *TestBuffer) WriteNewLine()
func (*TestBuffer) WriteSeparator ¶
func (b *TestBuffer) WriteSeparator()
type TestBufferOption ¶
type TestBufferOption func(options *testBufferOptions)
func WithoutTestClausePrefix ¶
func WithoutTestClausePrefix() TestBufferOption
type TestDialect ¶
type TestDialect struct{}
func NewTestDialect ¶
func NewTestDialect() *TestDialect
func (TestDialect) WriteCheckQuoted ¶
func (d TestDialect) WriteCheckQuoted(w litsql.Writer, s string)
func (TestDialect) WriteQuoted ¶
func (d TestDialect) WriteQuoted(w litsql.Writer, s string)
Click to show internal directories.
Click to hide internal directories.