persistence

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PostgresURI string
	SQLiteURI   string
)

Functions

func IsPostgres added in v1.50.0

func IsPostgres() bool

func IsSQlite added in v1.50.0

func IsSQlite() bool

func MustGetDBSession

func MustGetDBSession() *sql.DB

Types

type NullStringTime

type NullStringTime struct {
	Time  time.Time
	Valid bool
}

func (*NullStringTime) Scan

func (s *NullStringTime) Scan(value interface{}) error

Scan implements the Scanner interface.

type StringTime

type StringTime struct {
	Time  time.Time
	Valid bool
}

func (*StringTime) Scan

func (s *StringTime) Scan(value interface{}) error

Scan implements the Scanner interface.

Jump to

Keyboard shortcuts

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