examples

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const Driver = "sqlize-exampledriver"

use logging DB driver to see whats going on

Variables

View Source
var TGroups = struct {
	bsq.Table
	ID, Name bsq.Column
}{
	Table: bsq.Table{Name: "groups"},
}
View Source
var TMembership = struct {
	bsq.Table
	User, Group bsq.Column
}{
	Table: bsq.Table{Name: "membership"},
}
View Source
var TUsers = struct {
	bsq.Table
	ID, Name, RegDate bsq.Column
}{
	Table: bsq.Table{Name: "users"},
}
View Source
var UserFields entity.FieldMap[User]

Functions

func NewUserDBRepo

func NewUserDBRepo(d bsq.Dialect) (entity.Repo[User, entity.ID32], error)

func RunCreateScript

func RunCreateScript(q sqlize.Querier, drop bool) error

Types

type User

type User struct {
	entity.Base[entity.ID32]
	Name    string
	RegDate time.Time
}

func (*User) Equal

func (u *User) Equal(v *User) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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