package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Oct 31, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sqlvalue owns lossless SQL driver-value snapshots shared by cursors,
model identities and other explicit persistence/transport boundaries.
NormalizeNull maps driver nil byte slices to SQL NULL. Non-nil empty slices
remain empty bytes, matching PostgreSQL and the database/sql byte boundary.
type Value struct {
Kind string `json:"k"`
Text string `json:"t,omitempty"`
}
Value retains the driver kind, exact text and owned byte encoding. This is an
internal wire representation, not an application model or query API.
Encode snapshots a supported driver value without retaining mutable bytes.
Decode restores a driver value and gives each caller its own byte buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.