data

package
v0.0.0-...-e7f6f9e Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: BSD-3-Clause Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Driver_Sqlite    = "sqlite3"
	Driver_Postgres  = "postgres"
	Driver_Mysql     = "mysql"
	Driver_Sqlserver = "sqlserver"
	Driver_Oracle    = "godror"
)

Variables

View Source
var Service service

Functions

func Create

func Create[T any]() (err error)

func Delete

func Delete[T any](tid uint64, id int64) (err error)

Delete data for non nil

func Insert

func Insert(a timstruct) (seq int64, err error)

func SelectAllByIdx

func SelectAllByIdx[T any](columnName string, columnValue uint64) (as []*T, err error)

func SelectAllByIdxWithTid

func SelectAllByIdxWithTid[T any](tid uint64, columnName string, columnValue []byte) (as []*T, err error)

func SelectById

func SelectById[T timstruct](tid []byte, id int64) (a *T, err error)

func SelectByIdx

func SelectByIdx[T any](columnName string, columnValue []byte) (a *T, err error)

func SelectByIdxDescLimit

func SelectByIdxDescLimit[T any](id, limit int64, columnName string, columnValue []byte) (as []*T, err error)

func SelectByIdxLimit

func SelectByIdxLimit[T any](startId, limit int64, columnName string, columnValue uint64) (as []*T, err error)

func SelectByIdxWithInt

func SelectByIdxWithInt[T any](columnName string, columnValue uint64) (a *T, err error)

func SelectByIdxWithTid

func SelectByIdxWithTid[T any](tid uint64, columnName string, columnValue []byte) (a *T, err error)

func SelectIdByIdx

func SelectIdByIdx[T timstruct](columnName string, columnValue []byte) (id int64, err error)

func SelectIdByIdxSeq

func SelectIdByIdxSeq[T any](columnName string, columnValue []byte, id int64) (_r int64, err error)

func TimeNano

func TimeNano() int64

func UpdateNonzero

func UpdateNonzero(a timstruct) (err error)

UpdateNonzero data for non zero

Types

type OfflineBean

type OfflineBean struct {
	Id         any
	Mid        int64
	Stanze     []byte
	Timeseries int64 `idx:"1"`
}

Jump to

Keyboard shortcuts

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