The highest tagged major version is
v4 .
Discover Packages
github.com/kordax/basic-utils/v3
usql
package
Version:
v3.4.0
Opens a new window with list of versions in this module.
Published: Jul 9, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
usql
SQL helper types and functions.
Use this package for common SQL value handling that is shared across services.
Example
name := usql.NullString(input.Name)
createdAt := usql.NullTime(time.Now())
Expand ▾
Collapse ▴
Documentation
¶
NullBool constructs an sql.NullBool from a regular bool.
The Valid field is always set to true as a non-null bool is being provided.
NullFloat64 constructs an sql.NullFloat64 from a regular float64.
It sets the Valid field to true if the provided float64 is not NaN (Not-a-Number).
NullString constructs a sql.NullString from a regular string.
It sets the Valid field to true if the provided string is not empty.
NullTime constructs an sql.NullTime from a regular time.Time.
It sets the Valid field to true if the provided time is not the zero time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.