Documentation
¶
Overview ¶
Code generated by github.com/mackee/go-sqlla/v2/cmd/sqlla - DO NOT EDIT.
Code generated by github.com/mackee/go-sqlla/v2/cmd/sqlla - DO NOT EDIT.
Code generated by github.com/mackee/go-sqlla/v2/cmd/sqlla - DO NOT EDIT.
Code generated by github.com/mackee/go-sqlla/v2/cmd/sqlla. DO NOT EDIT.
Index ¶
- Variables
- func NewAccountSQL() accountSQL
- func NewGroupSQL() groupSQL
- func NewIdentitySQL() identitySQL
- type Account
- func (a Account) DefaultInsertHook(q accountInsertSQL) (accountInsertSQL, error)
- func (a Account) DefaultUpdateHook(q accountUpdateSQL) (accountUpdateSQL, error)
- func (s Account) Delete(db sqlla.DB) (sql.Result, error)
- func (s Account) DeleteContext(ctx context.Context, db sqlla.DB) (sql.Result, error)
- func (s Account) Select() accountSelectSQL
- func (s Account) Update() accountUpdateSQL
- type AccountID
- type Group
- type GroupID
- type Identity
- func (i Identity) DefaultInsertHook(_q identityInsertSQL) (identityInsertSQL, error)
- func (i Identity) DefaultUpdateHook(_q identityUpdateSQL) (identityUpdateSQL, error)
- func (s Identity) Delete(db sqlla.DB) (sql.Result, error)
- func (s Identity) DeleteContext(ctx context.Context, db sqlla.DB) (sql.Result, error)
- func (s Identity) Select() identitySelectSQL
- func (s Identity) Update() identityUpdateSQL
- type IdentityID
Constants ¶
This section is empty.
Variables ¶
View Source
var FixedNow time.Time
Functions ¶
func NewAccountSQL ¶
func NewAccountSQL() accountSQL
func NewGroupSQL ¶
func NewGroupSQL() groupSQL
func NewIdentitySQL ¶
func NewIdentitySQL() identitySQL
Types ¶
type Account ¶
type Account struct {
ID AccountID `db:"id,autoincrement,primarykey"`
Name string `db:"name"`
Embedding pgvector.Vector `db:"embedding,type=vector(3)"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (Account) DefaultInsertHook ¶
func (Account) DefaultUpdateHook ¶
func (Account) DeleteContext ¶
type Group ¶
type Group struct {
ID GroupID `db:"id,primarykey,autoincrement"`
Name string `db:"name"`
LeaderAccountID AccountID `db:"leader_account_id"`
SubLeaderAccountID sql.Null[AccountID] `db:"sub_leader_account_id"`
ChildGroupID sql.Null[GroupID] `db:"child_group_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (Group) DeleteContext ¶
type Identity ¶
type Identity struct {
ID IdentityID `db:"id,autoincrement,primarykey"`
AccountID AccountID `db:"account_id"`
Email string `db:"email"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (Identity) DefaultInsertHook ¶
func (Identity) DefaultUpdateHook ¶
func (Identity) DeleteContext ¶
type IdentityID ¶
type IdentityID int64
Click to show internal directories.
Click to hide internal directories.