dal

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserListByJoinTime

func UserListByJoinTime(ctx dalc.PreparedContext, request *UserListByJoinTimeRequest, iterator UserListByJoinTimeResultIterator) (err error)

func UserUpdateName

func UserUpdateName(ctx dalc.PreparedContext, request *UserUpdateNameRequest) (affected int64, err error)

Types

type UserListByJoinTimeRequest

type UserListByJoinTimeRequest struct {
	Id []int64
}

type UserListByJoinTimeResult

type UserListByJoinTimeResult struct {
	Id         int64
	Name       string
	Age        int
	HasFriends bool
	JoinTime   time.Time
}

type UserListByJoinTimeResultIterator

type UserListByJoinTimeResultIterator func(ctx context.Context, result *UserListByJoinTimeResult) (err error)

type UserRow

type UserRow struct {
	Id         int64
	Name       string
	Age        int
	HasFriends bool
	JoinTime   time.Time
}

func (*UserRow) Delete

func (row *UserRow) Delete(ctx dalc.PreparedContext) (err error)

func (*UserRow) Get

func (row *UserRow) Get(ctx dalc.PreparedContext) (err error)

func (*UserRow) Insert

func (row *UserRow) Insert(ctx dalc.PreparedContext) (err error)

func (*UserRow) Update

func (row *UserRow) Update(ctx dalc.PreparedContext) (err error)

type UserUpdateNameRequest

type UserUpdateNameRequest struct {
	Id       int64
	JoinTime time.Time
}

Jump to

Keyboard shortcuts

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