pgsql

package module
v0.0.0-...-29f3d2f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 6 Imported by: 0

README

GoDoc Go Report Card

pgsql


Copyright (c) 2020 Institut National de l'Audiovisuel

Documentation

Overview

Package pgsql AFAIRE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client AFAIRE.

func NewClient

func NewClient(logger *logger.Logger) *Client

NewClient AFAIRE.

func (*Client) Begin

func (c *Client) Begin() (*Transaction, error)

Begin AFAIRE.

func (*Client) Close

func (c *Client) Close()

Close AFAIRE.

func (*Client) Connect

func (c *Client) Connect(uri string) error

Connect AFAIRE.

func (*Client) ContexWithTimeout

func (c *Client) ContexWithTimeout(t time.Duration) (context.Context, context.CancelFunc)

ContexWithTimeout AFAIRE.

func (*Client) Exec

func (c *Client) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)

Exec AFAIRE.

func (*Client) Query

func (c *Client) Query(sql string, args ...interface{}) (pgx.Rows, error)

Query AFAIRE.

func (*Client) QueryRow

func (c *Client) QueryRow(sql string, args ...interface{}) pgx.Row

QueryRow AFAIRE.

type Row

type Row interface {
	Scan(dest ...interface{}) error
}

Row AFAIRE.

type Rows

type Rows interface {
	Next() bool
	Scan(dest ...interface{}) error
}

Rows AFAIRE.

type Transaction

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

Transaction AFAIRE.

func (*Transaction) Commit

func (t *Transaction) Commit() error

Commit AFAIRE.

func (*Transaction) Exec

func (t *Transaction) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)

Exec AFAIRE.

func (*Transaction) Query

func (t *Transaction) Query(sql string, args ...interface{}) (pgx.Rows, error)

Query AFAIRE.

func (*Transaction) QueryRow

func (t *Transaction) QueryRow(sql string, args ...interface{}) pgx.Row

QueryRow AFAIRE.

func (*Transaction) Rollback

func (t *Transaction) Rollback()

Rollback AFAIRE.

func (*Transaction) TryLock

func (t *Transaction) TryLock(key int) (bool, error)

TryLock AFAIRE.

Jump to

Keyboard shortcuts

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