database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: BSD-2-Clause 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 {
	*ent.Client
	// contains filtered or unexported fields
}

func Open

func Open(driverName, dataSourceName string, opts ...Option) (*Client, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

type Option

type Option func(*Client)

func ConnMaxLifetime

func ConnMaxLifetime(t time.Duration) Option

func MaxIdleConns

func MaxIdleConns(n int) Option

func MaxOpenConns

func MaxOpenConns(n int) Option

Jump to

Keyboard shortcuts

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