func PrepareAllQueries(ctx context.Context, p preparer) error {
	if _, err := p.Prepare(ctx, findAllDevicesSQL, findAllDevicesSQL); err != nil {
		return fmt.Errorf("prepare query 'FindAllDevices': %w", err)
	}
	if _, err := p.Prepare(ctx, insertDeviceSQL, insertDeviceSQL); err != nil {
		return fmt.Errorf("prepare query 'InsertDevice': %w", err)
	}
	if _, err := p.Prepare(ctx, findOneDeviceArraySQL, findOneDeviceArraySQL); err != nil {
		return fmt.Errorf("prepare query 'FindOneDeviceArray': %w", err)
	}
	if _, err := p.Prepare(ctx, findManyDeviceArraySQL, findManyDeviceArraySQL); err != nil {
		return fmt.Errorf("prepare query 'FindManyDeviceArray': %w", err)
	}
	if _, err := p.Prepare(ctx, findManyDeviceArrayWithNumSQL, findManyDeviceArrayWithNumSQL); err != nil {
		return fmt.Errorf("prepare query 'FindManyDeviceArrayWithNum': %w", err)
	}
	if _, err := p.Prepare(ctx, enumInsideCompositeSQL, enumInsideCompositeSQL); err != nil {
		return fmt.Errorf("prepare query 'EnumInsideComposite': %w", err)
	}
	return nil
}
PrepareAllQueries executes a PREPARE statement for all pggen generated SQL
queries in querier files. Typical usage is as the AfterConnect callback
for pgxpool.Config

pgx will use the prepared statement if available. Calling PrepareAllQueries
is an optional optimization to avoid a network round-trip the first time pgx
runs a query if pgx statement caching is enabled.
package enums
import (
	"context"
	"fmt"
	"github.com/jackc/pgconn"
	"github.com/jackc/pgtype"
	"github.com/jackc/pgx/v4"
)
type Querier interface {
	FindAllDevices(ctx context.Context) ([]FindAllDevicesRow, error)
	FindAllDevicesBatch(batch genericBatch)
	FindAllDevicesScan(results pgx.BatchResults) ([]FindAllDevicesRow, error)
	InsertDevice(ctx context.Context, mac pgtype.Macaddr, typePg DeviceType) (pgconn.CommandTag, error)
	InsertDeviceBatch(batch genericBatch, mac pgtype.Macaddr, typePg DeviceType)
	InsertDeviceScan(results pgx.BatchResults) (pgconn.CommandTag, error)
	FindOneDeviceArray(ctx context.Context) ([]DeviceType, error)
	FindOneDeviceArrayBatch(batch genericBatch)
	FindOneDeviceArrayScan(results pgx.BatchResults) ([]DeviceType, error)
	FindManyDeviceArray(ctx context.Context) ([][]DeviceType, error)
	FindManyDeviceArrayBatch(batch genericBatch)
	FindManyDeviceArrayScan(results pgx.BatchResults) ([][]DeviceType, error)
	FindManyDeviceArrayWithNum(ctx context.Context) ([]FindManyDeviceArrayWithNumRow, error)
	FindManyDeviceArrayWithNumBatch(batch genericBatch)
	FindManyDeviceArrayWithNumScan(results pgx.BatchResults) ([]FindManyDeviceArrayWithNumRow, error)
	EnumInsideComposite(ctx context.Context) (Device, error)
	EnumInsideCompositeBatch(batch genericBatch)
	EnumInsideCompositeScan(results pgx.BatchResults) (Device, error)
}
type DBQuerier struct {
	conn  genericConn    
	types *typeResolver  
}
var _ Querier = &DBQuerier{}
type genericConn interface {
	Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
	QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
	Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
}
type genericBatch interface {
	Queue(query string, arguments ...interface{})
}
func NewQuerier(conn genericConn) *DBQuerier {
	return NewQuerierConfig(conn, QuerierConfig{})
}
type QuerierConfig struct {
	DataTypes []pgtype.DataType
}
func NewQuerierConfig(conn genericConn, cfg QuerierConfig) *DBQuerier {
	return &DBQuerier{conn: conn, types: newTypeResolver(cfg.DataTypes)}
}
func (q *DBQuerier) WithTx(tx pgx.Tx) (*DBQuerier, error) {
	return &DBQuerier{conn: tx}, nil
}
type preparer interface {
	Prepare(ctx context.Context, name, sql string) (sd *pgconn.StatementDescription, err error)
}