debug

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapQueryBuilder

func WrapQueryBuilder(qb query.Builder, options ...query.BuilderOption) query.Builder

func WrapQueryExecutor

func WrapQueryExecutor(executor executor.QueryExecutor, dump func(string)) executor.QueryExecutor

Types

type FieldComparatorDumper added in v0.1.0

type FieldComparatorDumper func(w *strings.Builder, cmp where.FieldComparator)

type QueryBuilderConstructor

type QueryBuilderConstructor func(options ...query.BuilderOption) query.Builder

func WrapCreateQueryBuilder

func WrapCreateQueryBuilder(constructor QueryBuilderConstructor) QueryBuilderConstructor

func WrapCreateQueryBuilderWithDumper added in v0.1.0

func WrapCreateQueryBuilderWithDumper(constructor QueryBuilderConstructor, dumper FieldComparatorDumper) QueryBuilderConstructor

type QueryBuilderWithDumper added in v0.0.3

type QueryBuilderWithDumper interface {
	query.Builder
	SetFieldComparatorDumper(FieldComparatorDumper)
	Dump() string
}

func CreateDebugQueryBuilder

func CreateDebugQueryBuilder(options ...query.BuilderOption) QueryBuilderWithDumper

type QueryExecutorWithDump

type QueryExecutorWithDump interface {
	executor.QueryExecutor
	DumpQuery(query query.Query, onlyTotal bool)
}

type QueryWithDumper

type QueryWithDumper interface {
	query.Query
	String() string
}

func NewQueryWithDumper

func NewQueryWithDumper(query query.Query, dumpString string) QueryWithDumper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL