libbun

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilderForFilter

func BuilderForFilter(filter *store.FilterSpec, spec *TableSpec) (
	func(bun.QueryBuilder) bun.QueryBuilder,
	error,
)

Types

type TableSpec

type TableSpec struct {
	TableName   string
	KeyField    string
	KeySQL      string
	ColumnNames map[string]string
}

func GetTableSpec

func GetTableSpec[T any]() (*TableSpec, error)

func (*TableSpec) Validate

func (t *TableSpec) Validate() error

Jump to

Keyboard shortcuts

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