mariadb

package
v0.0.0-...-213d5aa Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("Item not found in table")
	ErrValidation = errors.New("Valid column error")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	UDPPacket *UDPPacketClient
	Err       error
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

type UDPPacket

type UDPPacket struct {
	ID, Name, Title, Content string
	UpdateTime               time.Time
}

type UDPPacketClient

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

func (UDPPacketClient) Delete

func (uc UDPPacketClient) Delete(ctx context.Context, id string) error

func (*UDPPacketClient) Insert

func (uc *UDPPacketClient) Insert(ctx context.Context, upkt *UDPPacket) error

func (*UDPPacketClient) Query

func (uc *UDPPacketClient) Query() *UDPPacketQuery

func (*UDPPacketClient) Update

func (uc *UDPPacketClient) Update(ctx context.Context, upkt *UDPPacket) error

type UDPPacketQuery

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

func (*UDPPacketQuery) All

func (uq *UDPPacketQuery) All(ctx context.Context) (*UDPPackets, error)

func (*UDPPacketQuery) First

func (uq *UDPPacketQuery) First(ctx context.Context) (*UDPPacket, error)

func (*UDPPacketQuery) Limit

func (uq *UDPPacketQuery) Limit(limit int) *UDPPacketQuery

func (*UDPPacketQuery) Offset

func (uq *UDPPacketQuery) Offset(offset int) *UDPPacketQuery

func (*UDPPacketQuery) Order

func (uq *UDPPacketQuery) Order(condition string) *UDPPacketQuery

func (*UDPPacketQuery) Where

func (uq *UDPPacketQuery) Where(ps ...[4]string) *UDPPacketQuery

ps: {["name", "=", "jack", "and"], ["title", "like", "anything", ""]}

type UDPPackets

type UDPPackets struct {
	Collection []*UDPPacket
}

Jump to

Keyboard shortcuts

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