postgres

package
v0.0.0-...-82d63aa Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:34

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:35

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:36

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:36

+gpa-ignore DO NOT EDIT THIS FILE Generated by gpa at 2021-07-19 16:50:01

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:37

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:37

+mro-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-07-21 10:39:38

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	// contains filtered or unexported fields
}

func (*Count) CountByName

func (count *Count) CountByName(user *models.User) (int64, models.User, error)

func (*Count) CountName

func (count *Count) CountName(user *models.User, name string) (int64, error)

func (*Count) CountXName

func (count *Count) CountXName(user *models.User, name string) (int64, error)

type Delete

type Delete struct {
	// contains filtered or unexported fields
}

func (*Delete) Delete1Name

func (delete *Delete) Delete1Name(id uint64) (int64, models.User, error)

func (*Delete) Delete2Name

func (delete *Delete) Delete2Name(user models.User, id uint64) (int64, error)

func (*Delete) DeleteAll

func (delete *Delete) DeleteAll() (int64, models.User, error)

func (*Delete) DeleteByAgeAndCret

func (delete *Delete) DeleteByAgeAndCret(user *models.User) (int64, *models.User, error)

func (*Delete) DeleteByName

func (delete *Delete) DeleteByName(user *models.User, gender bool) (int64, error)

func (*Delete) DeleteName

func (delete *Delete) DeleteName(user *models.User, name string, ages []int) (int64, error)

func (*Delete) DeleteXByAge

func (delete *Delete) DeleteXByAge(age int, URL string) (int64, models.User, error)

func (*Delete) DeleteXName

func (delete *Delete) DeleteXName(user *models.User, name string) (int64, error)

type Find

type Find struct {
	// contains filtered or unexported fields
}

func (*Find) FindA

func (find *Find) FindA(ctx context.Context, id uint64) (*models.User, error)

func (*Find) FindById

func (find *Find) FindById(id uint64) (models.User, error)

func (*Find) FindCbById

func (find *Find) FindCbById(id uint64, fn func(*models.User) error) error

func (*Find) FindMapById

func (find *Find) FindMapById(id uint64, fn func(*models.User) (uint64, error)) (map[uint64]*models.User, error)

func (*Find) FindMapByName

func (find *Find) FindMapByName(name string, kg func(*models.User) (uint64, error)) (map[uint64]*models.User, error)

func (*Find) FindUsers

func (find *Find) FindUsers(nm string) ([]*models.User, error)

func (*Find) FindUsers1

func (find *Find) FindUsers1(ids []uint64) ([]*models.User, error)

type FindBy

type FindBy struct {
	// contains filtered or unexported fields
}

func (*FindBy) FindAById

func (findBy *FindBy) FindAById(ctx context.Context, id uint64) (*models.User, error)

func (*FindBy) FindById

func (findBy *FindBy) FindById(id uint64) (models.User, error)

func (*FindBy) FindCbById

func (findBy *FindBy) FindCbById(id uint64, fn func(*models.User) error) error

func (*FindBy) FindMapByName

func (findBy *FindBy) FindMapByName(name string, kg func(*models.User) (uint64, error)) (map[uint64]*models.User, error)

func (*FindBy) FindXuByName

func (findBy *FindBy) FindXuByName(name string) ([]*models.User, error)

type Teacher

type Teacher struct {
	// contains filtered or unexported fields
}

func (*Teacher) FindAll

func (teacher *Teacher) FindAll() ([]*models.Teacher, error)

func (*Teacher) FindByID

func (teacher *Teacher) FindByID(id int64) (*models.Teacher, error)

func (*Teacher) FindCallbck

func (teacher *Teacher) FindCallbck(cb func(*models.Teacher) error) error

func (*Teacher) FindMap

func (teacher *Teacher) FindMap(kg func(*models.Teacher) (int64, error)) (map[int64]*models.Teacher, error)

func (*Teacher) Insert1Teacher

func (teacher *Teacher) Insert1Teacher(tc *models.Teacher) (*models.Teacher, error)

func (*Teacher) InsertTeacher

func (teacher *Teacher) InsertTeacher(name string) (*models.Teacher, error)

func (*Teacher) UpdateByID

func (teacher *Teacher) UpdateByID(tc *models.Teacher) error

type Update

type Update struct {
	// contains filtered or unexported fields
}

func (*Update) Update1Name

func (update *Update) Update1Name(name string, id uint64) (int64, models.User, error)

func (*Update) Update2Name

func (update *Update) Update2Name(user models.User, ids []uint64) (int64, error)

func (*Update) UpdateByAgeAndCret

func (update *Update) UpdateByAgeAndCret(user *models.User) (int64, *models.User, error)

func (*Update) UpdateByName

func (update *Update) UpdateByName(user *models.User, gender bool) (int64, error)

func (*Update) UpdateName

func (update *Update) UpdateName(user *models.User, name string) (int64, error)

func (*Update) UpdateXByAge

func (update *Update) UpdateXByAge(age int, URL string) (int64, models.User, error)

func (*Update) UpdateXName

func (update *Update) UpdateXName(user *models.User, name string) (int64, error)

func (*Update) UpdateXuByIdAndAge

func (update *Update) UpdateXuByIdAndAge(user *models.User) error

func (*Update) UpdateYName

func (update *Update) UpdateYName(name string) (int64, models.User, error)

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

func (*UserRepo) Insert

func (userRepo *UserRepo) Insert(ctx context.Context, user *models.User, name string) (*models.User, error)

func (*UserRepo) InsertA

func (userRepo *UserRepo) InsertA(user *models.User) error

func (*UserRepo) InsertB

func (userRepo *UserRepo) InsertB(user *models.User, DD string, URL string) (models.User, error)

func (*UserRepo) InsertC

func (userRepo *UserRepo) InsertC(user *models.User) (*models.User, error)

func (*UserRepo) InsertUser

func (userRepo *UserRepo) InsertUser(name string) (*models.User, error)

Jump to

Keyboard shortcuts

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