sqlite

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelToTypeDateConverter

func ModelToTypeDateConverter(src any) (any, error)

ModelToTypeDateConverter converts a date value from a string to a correctly formatted string The source value is expected to be a string representation of a date in YYYYMMDD or YYYY-MM-DD format. Returns the formatted date (YYYY-MM-DD) or an error if the source is invalid or conversion fails.

This is a converter that can only be used with an sqlite database, which stores dates as a string.

func ModelToTypeTimeConverter added in v0.0.5

func ModelToTypeTimeConverter(src any) (any, error)

ModelToTypeTimeConverter converts a string time value from to a correctly formatted string. The source value is expected to be a string representation of a time in HHMM format. Returns the formatted time (HH:MM) or an error if the source is invalid or conversion fails.

This is a converter that can only be used with an sqlite database, which stores times as a string.

func TypeToModelDateConverter

func TypeToModelDateConverter(src any) (any, error)

TypeToModelDateConverter converts a date value from a string to a correctly formatted string. The source value is expected to be a string representation of a date in YYYYMMDD or YYYY-MM-DD format. Returns the formatted date (YYYYMMDD) or an error if the source is invalid or conversion fails.

This is a converter that can only be used with an sqlite database, which stores dates as a string.

func TypeToModelTimeConverter

func TypeToModelTimeConverter(src any) (any, error)

TypeToModelTimeConverter converts a string time value from to a correctly formatted string. The source value is expected to be a string representation of a time in HHMM or HH:MM format. Returns the formatted time (HHMM) or an error if the source is invalid or conversion fails.

This is a converter that can only be used with an sqlite database, which stores times as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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