sqzite3

package module
v0.0.0-...-45b9b64 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

README

SQLite3 Support for sqlize

Documentation

Index

Examples

Constants

This section is empty.

Variables

View Source
var (
	Dialect dialect
)

Functions

This section is empty.

Types

type ScanBool

type ScanBool struct{ B *bool }

func (ScanBool) Scan

func (scn ScanBool) Scan(src any) (err error)

type ScanTime

type ScanTime struct{ T *time.Time }

func (ScanTime) Scan

func (scn ScanTime) Scan(src any) (err error)

type Upsert

type Upsert bsq.Upsert
Example
ups, err := bsq.NewQuery(Dialect, Upsert{Key: bsq.Columns{&examples.TUsers.ID}}.Defn())
if err != nil {
	fmt.Println(err)
	return
}
fmt.Println(ups.String())
Output:

INSERT INTO users (id, name, reg_date) VALUES ($1, $2, $3) ON CONFLICT (id) DO UPDATE SET name=$2, reg_date=$3

func (Upsert) Defn

func (ups Upsert) Defn() []any

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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