postgres

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:13

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:14

+gpa-ignore DO NOT EDIT THIS FILE Generated by gpa at 2021-12-06 10:58:16

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:14

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:15

+gpa-ignore DO NOT EDIT THIS FILE Generated by gpa at 2021-12-06 10:58:16

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:15

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:16

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:16

+gpa-ignore DO NOT EDIT THIS FILE Generated by mro at 2021-12-06 10:58:16

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, ids []uint64) (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)

func (*Find) FindUsers2

func (find *Find) FindUsers2(nm string) ([]*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 RepoTruncate

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

func (*RepoTruncate) Truncate

func (repoTruncate *RepoTruncate) Truncate(u models.User) error

Truncate 清空表数据

type Teacher

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

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) FindByID added in v0.1.6

func (update *Update) FindByID(ID int64) (*repos728.Abc, 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, name 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