sqlutil

package
v0.15.10-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanSearchQuery

func CleanSearchQuery(query string) string
func Search(sql, condition, query string, params []any) (string, []any)

func Sort

func Sort(sql, sortBy, sortDirection, defaultSortBy string, sortingFields map[string]string) string

func Tenant

func Tenant(ctx context.Context, query string, params ...any) (string, []any)

func TenantID

func TenantID(ctx context.Context) *string

func TenantIDString added in v0.15.3

func TenantIDString(ctx context.Context) string

func TenantInsert

func TenantInsert(ctx context.Context, params ...any) []any

func TenantWithPrefix

func TenantWithPrefix(ctx context.Context, query string, prefix string, params ...any) (string, []any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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