postgresql

package
v0.0.0-...-79d54f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 8 Imported by: 0

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

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 (a Account) DefaultInsertHook(q accountInsertSQL) (accountInsertSQL, error)

func (Account) DefaultUpdateHook

func (a Account) DefaultUpdateHook(q accountUpdateSQL) (accountUpdateSQL, error)

func (Account) Delete

func (s Account) Delete(db sqlla.DB) (sql.Result, error)

func (Account) DeleteContext

func (s Account) DeleteContext(ctx context.Context, db sqlla.DB) (sql.Result, error)

func (Account) Select

func (s Account) Select() accountSelectSQL

func (Account) Update

func (s Account) Update() accountUpdateSQL

type AccountID

type AccountID int64

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) Delete

func (s Group) Delete(db sqlla.DB) (sql.Result, error)

func (Group) DeleteContext

func (s Group) DeleteContext(ctx context.Context, db sqlla.DB) (sql.Result, error)

func (Group) Select

func (s Group) Select() groupSelectSQL

func (Group) Update

func (s Group) Update() groupUpdateSQL

type GroupID

type GroupID int64

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 (i Identity) DefaultInsertHook(_q identityInsertSQL) (identityInsertSQL, error)

func (Identity) DefaultUpdateHook

func (i Identity) DefaultUpdateHook(_q identityUpdateSQL) (identityUpdateSQL, error)

func (Identity) Delete

func (s Identity) Delete(db sqlla.DB) (sql.Result, error)

func (Identity) DeleteContext

func (s Identity) DeleteContext(ctx context.Context, db sqlla.DB) (sql.Result, error)

func (Identity) Select

func (s Identity) Select() identitySelectSQL

func (Identity) Update

func (s Identity) Update() identityUpdateSQL

type IdentityID

type IdentityID int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL