db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const MODULE = "database"

Variables

This section is empty.

Functions

func Engine

func Engine() *xorm.Engine

func Register

func Register(m ...any)

func SetDatabaseUrl

func SetDatabaseUrl(url string)

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