table

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(database *sqlite.Database) (repository.Repository, error)

Types

type Table

type Table struct {
	*gorm.DB
}

func (*Table) Create

func (t *Table) Create(user *user.User) error

func (*Table) Delete

func (t *Table) Delete(id *user.ID) error

func (*Table) Search

func (t *Table) Search(criteria *repository.Criteria) (*user.User, error)

func (*Table) Update

func (t *Table) Update(user *user.User) error

func (*Table) Verify

func (t *Table) Verify(id *user.ID) error

type User

type User struct {
	*gorm.Model
	ID       string `gorm:"uniqueIndex"`
	Email    string `gorm:"uniqueIndex"`
	Username string `gorm:"uniqueIndex"`
	Password string
	Verified bool
}

Jump to

Keyboard shortcuts

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