Documentation ¶ Index ¶ func InsertCar(tx *sql.Tx, c Car) (int64, error) func InsertCarSimple(tx *sql.Tx, c Car) (int64, error) func UpdateCar(tx *sql.Tx, c Car) error func UpdateCarSimple(tx *sql.Tx, c Car) error type Car func SelectCars(tx *sql.Tx) ([]Car, error) func SelectCarsSimple(tx *sql.Tx) ([]Car, error) 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) Source Files ¶ View all Source files car.go Directories ¶ Show internal Expand all Path Synopsis ex0 ex1 Click to show internal directories. Click to hide internal directories.