package
0.0.0-20181122205021-73923569c8aa
Repository: https://github.com/pdk/crudgen.git
Documentation: pkg.go.dev

# Functions

DeleteStatement returns "delete from tablename where ...".
InsertReturningStatement returns "insert into tablename (...) values (...) returning id".
InsertStatement returns "insert into tablename (...) values (...)".
InTransaction wraps an operation in BEGIN/COMMIT.
Log will write a line to the logger, IFF it has been set to a non-nil value.
PostDelete checks if the passed in item has a PostDelete method and invokes it.
PostInsert checks if the passed in item has a PostInsert method and invokes it.
PostModify checks if the passed in item has a PostModify method and invokes it.
PostUpdate checks if the passed in item has a PostUpdate method and invokes it.
PreDelete checks if the passed in item has a PreDelete method and invokes it.
PreInsert checks if the passed in item has a PreInsert method and invokes it.
PreModify checks if the passed in item has a PreModify method and invokes it.
PreUpdate checks if the passed in item has a PreUpdate method and invokes it.
SelectStatement constructs a select statement for the given table and columns, with optional additional clauses (where, order by, etc.).
SetLogger sets a logger so we'll start logging database actions.
UnsetLogger disables logging of SQL actions.
UpdateStatement returns "update tablename set ..

# Constants

Varieties for supported bind-variable markers.
Varieties for supported bind-variable markers.
Varieties for supported bind-variable markers.

# Variables

Some standard errors that generated code may return.
Some standard errors that generated code may return.
Some standard errors that generated code may return.

# Interfaces

Logger is a thing that can write to a log.
PostDeleter offers a post-deletion operation.
PostInserter offers a post-insert operation.
PostModifier offers an operation to be executed after any insert/update/delete operation.
PostUpdater offers a post-update operation.
PreDeleter offers a pre-delete operation.
PreInserter offers a pre-insert operation which might return an error to indicate the operation should be aborted.
PreModifier offers an operation to be executed before any insert/update/delete operation.
PreUpdater offers a pre-update operation which might return an error to indicate the operation should be aborted.

# Type aliases

BindStyle is an enum of styles of bind vars.