crdb

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

crdb

关于配置

  • 支持通用配置,最简单化可用
  • 不同业务的核心数配置不同,支持传入特殊配置

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Pool *pgxpool.Pool
}

func (*Client) Init

func (client *Client) Init(ctx context.Context, basicConfigFilePath string, dbName string, maxConnections int32) (err error)

func (*Client) Query

func (client *Client) Query(ctx context.Context, sql string, args ...interface{}) (result []any, err error)

Jump to

Keyboard shortcuts

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