examples

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertCar

func InsertCar(tx *sql.Tx, c Car) (int64, error)

func InsertCarSimple added in v0.2.0

func InsertCarSimple(tx *sql.Tx, c Car) (int64, error)

func UpdateCar

func UpdateCar(tx *sql.Tx, c Car) error

func UpdateCarSimple added in v0.2.0

func UpdateCarSimple(tx *sql.Tx, c Car) error

Types

type Car

type Car struct {
	ID    int64  `db:"id"`
	Make  string `db:"make"`
	Model string `db:"model"`
	Year  int64  `db:"year"`
	Color string `db:"color"`
}

func SelectCars

func SelectCars(tx *sql.Tx) ([]Car, error)

func SelectCarsSimple added in v0.2.2

func SelectCarsSimple(tx *sql.Tx) ([]Car, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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