sqlb

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInsert

func BuildInsert(ctx context.Context, entity any, isAuditable bool) (string, []any, string)

build insert form => "INSERT INTO <tab_name> (field1, field2, fieldN) VALUES(?,?,?);" and return query + values

func BuildRead

func BuildRead(ctx context.Context, entity any, filter map[string]any) (string, []any, string)

func BuildUpdate

func BuildUpdate(ctx context.Context, entity any, isAuditable bool) (string, []any, string)

build update form => "UPDATE <tab_name> SET field1 = ?, field2 = ? WHERE fieldN = ?;" and return query + values

Types

This section is empty.

Jump to

Keyboard shortcuts

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