sqlc

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by sqlc. DO NOT EDIT. versions:

sqlc v1.13.0

source: batch.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID   int32  `json:"id"`
	Name string `json:"name"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	SendBatch(context.Context, *pgx.Batch) pgx.BatchResults
}

type InsertAuthorsBatchResults

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

func (*InsertAuthorsBatchResults) Close

func (b *InsertAuthorsBatchResults) Close() error

func (*InsertAuthorsBatchResults) QueryRow

func (b *InsertAuthorsBatchResults) QueryRow(f func(int, int32, error))

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) InsertAuthors

func (q *Queries) InsertAuthors(ctx context.Context, name []string) *InsertAuthorsBatchResults

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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