Documentation
¶
Overview ¶
Code generated by ormgen; DO NOT EDIT.
source: group/group.go
Code generated by ormgen; DO NOT EDIT.
source: group
Index ¶
Constants ¶
View Source
const BulkInsertGroupQueryPrefix = `INSERT INTO group (id, name) VALUES `
View Source
const DeleteGroupByPKQuery = `DELETE FROM group WHERE id = $1`
View Source
const GetGroupByPKQuery = `SELECT id, name FROM group WHERE id = $1`
View Source
const GetOneGroupQuery = `SELECT id, name FROM group`
View Source
const InsertGroupQuery = `INSERT INTO group (id, name) VALUES ($1, $2)`
View Source
const ListGroupQuery = `SELECT id, name FROM group`
View Source
const SelectGroupForUpdateByPKQuery = `SELECT id, name FROM group WHERE id = $1 FOR UPDATE`
View Source
const SelectGroupForUpdateQuery = `SELECT id, name FROM group`
View Source
const UpdateGroupQuery = `UPDATE group SET (name) = ($1) WHERE id = $2`
Variables ¶
View Source
var ( DefaultBulkInsertMaxPlaceholdersPerQuery = 2000 DefaultPlaceholderGenerator = placeholderGenerator )
Functions ¶
This section is empty.
Types ¶
type ORM ¶
type ORM interface { // InsertGroup inserts a new Group into the database. InsertGroup(ctx context.Context, queryerContext ormcommon.QueryerContext, group *group_.Group) error // BulkInsertGroup inserts multiple Group into the database. BulkInsertGroup(ctx context.Context, queryerContext ormcommon.QueryerContext, groupSlice []*group_.Group) error // GetGroupByPK gets a Group by its primary keys. GetGroupByPK(ctx context.Context, queryerContext ormcommon.QueryerContext, id int) (*group_.Group, error) // SelectGroupForUpdateByPK locks a Group by its primary keys. SelectGroupForUpdateByPK(ctx context.Context, queryerContext ormcommon.QueryerContext, id int) (*group_.Group, error) // GetOneGroup returns a Group. // If no rows are found, it returns sql.ErrNoRows. // If multiple rows are found, it returns ormcommon.ErrNotUnique. GetOneGroup(ctx context.Context, queryerContext ormcommon.QueryerContext, opts ...ormopt.QueryOption) (*group_.Group, error) // ListGroup returns a slice of Group. ListGroup(ctx context.Context, queryerContext ormcommon.QueryerContext, opts ...ormopt.QueryOption) (group_.GroupSlice, error) // SelectGroupForUpdate locks a Group. SelectGroupForUpdate(ctx context.Context, queryerContext ormcommon.QueryerContext, opts ...ormopt.QueryOption) (group_.GroupSlice, error) // UpdateGroup updates a Group. UpdateGroup(ctx context.Context, queryerContext ormcommon.QueryerContext, group *group_.Group) error // DeleteGroupByPK deletes a Group by its primary keys. DeleteGroupByPK(ctx context.Context, queryerContext ormcommon.QueryerContext, id int) error }
Click to show internal directories.
Click to hide internal directories.