db

package
v0.0.0-...-b9db054 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "database"

Variables

View Source
var Engine *xorm.Engine

Functions

func Register

func Register(m ...any)

func Shutdown

func Shutdown() error

func Startup

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