debug

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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 QueryBuilderConstructor

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

func WrapCreateQueryBuilder

func WrapCreateQueryBuilder(constructor QueryBuilderConstructor) QueryBuilderConstructor

type QueryBuilderWithDumper added in v0.0.3

type QueryBuilderWithDumper interface {
	query.Builder
	SaveWhereForDump(field string, condition where.ComparatorType, value ...interface{})
	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