postgresql

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logger *zap.Logger) pgx.Logger

Types

type Logger

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

func (*Logger) Log

func (pl *Logger) Log(ctx context.Context, level pgx.LogLevel, msg string, data map[string]interface{})

type PostgresqlDialector

type PostgresqlDialector struct {
	connection.Options

	DB *sql.DB
}

func (*PostgresqlDialector) Connect

func (c *PostgresqlDialector) Connect(ctx context.Context, options connection.Options) (*sql.DB, error)

func (*PostgresqlDialector) GetFullDataType

func (c *PostgresqlDialector) GetFullDataType(prop schema.Property) string

GetFullDataType returns the database specific data type of Property https://www.postgresql.org/docs/current/datatype.html

Jump to

Keyboard shortcuts

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