dbtype

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dbtype names the types the generated queries bind to.

It exists for one reason: sqlc recognises the package name "pgtype" and injects an import of the v4 module alongside the v5 one, which does not compile. Binding the queries to an alias declared here sidesteps that while keeping the underlying type exactly pgx's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID = pgtype.UUID

UUID is how an identifier crosses the database boundary: the raw 16 bytes plus a validity flag, carrying the sql.Scanner and driver.Valuer implementations that the identifier type itself deliberately lacks. One type covers both nullable and non-nullable columns.

Jump to

Keyboard shortcuts

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