Documentation
¶
Overview ¶
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tim
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tim
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tim
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tim
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tim
Index ¶
- Variables
- func Create[T any]() (err error)
- func Delete[T any](tid uint64, id int64) (err error)
- func Init() (err error)
- func Insert(a timstruct) (seq int64, err error)
- func SelectAllByIdx[T any](columnName string, columnValue uint64) (as []*T, err error)
- func SelectAllByIdxWithTid[T any](tid uint64, columnName string, columnValue uint64) (as []*T, err error)
- func SelectById[T timstruct](tid uint64, id int64) (a *T, err error)
- func SelectByIdx[T any](columnName string, columnValue uint64) (a *T, err error)
- func SelectByIdxDescLimit[T any](id, limit int64, columnName string, columnValue uint64) (as []*T, err error)
- func SelectByIdxLimit[T any](startId, limit int64, columnName string, columnValue uint64) (as []*T, err error)
- func SelectByIdxWithTid[T any](tid uint64, columnName string, columnValue uint64) (a *T, err error)
- func SelectIdByIdx[T timstruct](columnName string, columnValue uint64) (id int64, err error)
- func SelectIdByIdxSeq[T any](columnName string, columnValue uint64, id int64) (_r int64, err error)
- func UpdateNonzero(a timstruct) (err error)
- type OfflineBean
Constants ¶
This section is empty.
Variables ¶
var Handler engine
var M_dbname = fmt.Sprint(CRC64(Int64ToBytes(RandId() + 5)))
var M_host = fmt.Sprint(CRC64(Int64ToBytes(RandId() + 3)))
var M_port = fmt.Sprint(CRC64(Int64ToBytes(RandId() + 4)))
var M_pwd = fmt.Sprint(CRC64(Int64ToBytes(RandId() + 2)))
var M_user = fmt.Sprint(CRC64(Int64ToBytes(RandId() + 1)))