https://github.com/soroushj/sqlt
More SQL types for Go
https://github.com/soroushj/sqlt
database go-module golang-module sql sql-types
Last synced: 7 months ago
JSON representation
More SQL types for Go
- Host: GitHub
- URL: https://github.com/soroushj/sqlt
- Owner: soroushj
- License: mit
- Created: 2020-10-23T13:00:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T11:39:43.000Z (about 2 years ago)
- Last Synced: 2025-04-08T11:51:36.203Z (about 1 year ago)
- Topics: database, go-module, golang-module, sql, sql-types
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlt: More SQL types for Go
[](https://pkg.go.dev/github.com/soroushj/sqlt)
[](https://github.com/soroushj/sqlt/actions/workflows/ci.yml)
[](https://codecov.io/gh/soroushj/sqlt)
[](https://goreportcard.com/report/github.com/soroushj/sqlt)
## Overview
**Note:** This module should not be used in new code. The generic type [`database/sql.Null`](https://pkg.go.dev/database/sql#Null) is available in the standard library since Go 1.22.
The sqlt package provides types that implement Go's [`database/sql.Scanner`](https://pkg.go.dev/database/sql#Scanner) and [`database/sql/driver.Valuer`](https://pkg.go.dev/database/sql/driver#Valuer) interfaces:
- [`github.com/soroushj/sqlt.NullRawMessage`](https://pkg.go.dev/github.com/soroushj/sqlt#NullRawMessage) - Nullable [`encoding/json.RawMessage`](https://pkg.go.dev/encoding/json#RawMessage)
- [`github.com/soroushj/sqlt.NullUUID`](https://pkg.go.dev/github.com/soroushj/sqlt#NullUUID) - Nullable [`github.com/google/uuid.UUID`](https://pkg.go.dev/github.com/google/uuid#UUID) (**Note:** This type should not be used in new code. [`github.com/google/uuid.NullUUID`](https://pkg.go.dev/github.com/google/uuid#NullUUID) is available since v1.3.0.)