crud

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Master *ClientM
	User   *UserClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *xsql.Config) (*Client, error)

func (*Client) Begin

func (c *Client) Begin(ctx context.Context) (*Tx, error)

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

type ClientM

type ClientM struct {
	User *UserClient
}

type Tx

type Tx struct {
	User *UserClient
	// contains filtered or unexported fields
}

func (*Tx) Commit

func (tx *Tx) Commit() error

func (*Tx) Rollback

func (tx *Tx) Rollback() error

type UserClient

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

func (*UserClient) Create

func (c *UserClient) Create() *user.Creater

func (*UserClient) Delete

func (c *UserClient) Delete() *xsql.DeleteExecutor[*user.User]

func (*UserClient) Find

func (c *UserClient) Find() *xsql.SelectExecutor[*user.User]

func (*UserClient) Update

func (c *UserClient) Update() *user.Updater

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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