Categorygithub.com/paulstuart/dbobj
modulepackage
0.0.7
Repository: https://github.com/paulstuart/dbobj.git
Documentation: pkg.go.dev

# README

dbobj GoDoc

A lightweight ORM using sql code generated from struct tags. No fancy relations, just plain old objects.

# Packages

dbgen is a tool to automate the creation of create/update/delete methods that satisfy the github.com/paulstuart/dbobj.DBObject interface.

# Functions

NewDBU returns a new DBU.
Placeholders returns SQLite values placeholders.

# Variables

ErrKeyMissing is returned when key value is not set.
ErrNilWritePointers is returned when a list handler returns a nil slice.
ErrNoKeyField is returned for tables without primary key identified.

# Structs

DBU is a DataBaseUnit.

# Interfaces

Common Rows object between rqlite and /pkg/database/sql.
DBList is the interface for a list of db objects.
DBObject provides methods for object storage The functions are generated for each object annotated accordingly.
DBS is an abstracted database interface, intended to work with both rqlite and regular sql.DB connections.
No description provided by the author

# Type aliases

SetHandler returns a slice of value pointer interfaces If there are no values to set it returns a nil instead.
SQLDB is a common interface for opening an sql db.