db

package
v0.0.0-...-dd13c3c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsDateTime

func AsDateTime(t time.Time) string

func AsNullString

func AsNullString(p *string) sql.NullString

func AsStringPointer

func AsStringPointer(s sql.NullString) *string

func WithTransaction

func WithTransaction(f func(*Tx) (interface{}, error)) (interface{}, error)

Types

type Tx

type Tx struct {
	Engine  *xorm.Engine
	Session *xorm.Session
}

Jump to

Keyboard shortcuts

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