db

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const MODULE = "database"

Variables

View Source
var Engine *xorm.Engine

Functions

func Register

func Register(m ...any)

func Shutdown added in v4.1.0

func Shutdown() error

func Startup added in v4.1.0

func Startup() error

Types

type Time

type Time time.Time

func (*Time) FromDB

func (t *Time) FromDB(b []byte) error

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText

func (t Time) MarshalText() ([]byte, error)

func (Time) Now

func (t Time) Now() Time

func (Time) ParseTime

func (t Time) ParseTime(tt time.Time) Time

func (Time) String

func (t Time) String() string

func (*Time) ToDB

func (t *Time) ToDB() ([]byte, error)

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) error

func (*Time) Value

func (t *Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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