Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents a SQL database
func (*DB) CreateCharge ¶
func (d *DB) CreateCharge(tx *sql.Tx, charges db.Charges, inventoryNumber, user, notes string) (id int64, err error)
CreateCharge creates a charge in the database with the given info and returns the ID of the charges or an error if one occurred
func (*DB) ReadDevice ¶
ReadDevice returns the Device with with the given bagTag or an error if one occurred
Click to show internal directories.
Click to hide internal directories.