sqzite3

package module
v0.0.0-...-7cc9bbe Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: AGPL-3.0 Imports: 6 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 ScanTime

type ScanTime struct {
	T *time.Time
}

func (ScanTime) Scan

func (scn ScanTime) Scan(src interface{}) (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