types

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDatetime

type SQLiteDatetime struct {
	Time  time.Time
	Valid bool
}

SQLiteDatetime offers interoperability between SQLite's lack of Datetime types and go's time.Time. Inspired from github.com/mattn/go-sqlite3.

func NewSQLiteDatetime

func NewSQLiteDatetime(t time.Time) SQLiteDatetime

func (*SQLiteDatetime) Scan

func (sdt *SQLiteDatetime) Scan(src any) error

func (SQLiteDatetime) Value

func (sdt SQLiteDatetime) Value() (driver.Value, error)

type SQLiteJSON

type SQLiteJSON[J any] struct {
	JSON J
}

func NewSQLiteJSON

func NewSQLiteJSON[J any](val J) SQLiteJSON[J]

func (*SQLiteJSON[J]) Scan

func (sj *SQLiteJSON[J]) Scan(src any) error

func (SQLiteJSON[J]) Value

func (sj SQLiteJSON[J]) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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