rqZzz

package
v1.4105.455 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZzzFieldTypeMap = map[string]Tt.DataType{
	`id`:          Tt.Unsigned,
	`createdAt`:   Tt.Integer,
	`coords`:      Tt.Array,
	`name`:        Tt.String,
	`heightMeter`: Tt.Double,
}

ZzzFieldTypeMap returns key value of field name and key

Functions

This section is empty.

Types

type Zzz

type Zzz struct {
	Adapter     *Tt.Adapter `json:"-" msg:"-" query:"-" form:"-"`
	Id          uint64
	CreatedAt   int64
	Coords      []any
	Name        string
	HeightMeter float64
}

Zzz DAO reader/query struct

func NewZzz

func NewZzz(adapter *Tt.Adapter) *Zzz

NewZzz create new ORM reader/query object

func (*Zzz) FindArrOffsetLimit

func (z *Zzz) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta)

FindArrOffsetLimit returns as slice of slice order by idx eg. .UniqueIndex*()

func (*Zzz) FindById

func (z *Zzz) FindById() bool

FindById Find one by Id

func (*Zzz) FindOffsetLimit

func (z *Zzz) FindOffsetLimit(offset, limit uint32, idx string) []Zzz

FindOffsetLimit returns slice of struct, order by idx, eg. .UniqueIndex*()

func (*Zzz) FromArray

func (z *Zzz) FromArray(a A.X) *Zzz

FromArray convert slice to receiver fields

func (*Zzz) FromUncensoredArray

func (z *Zzz) FromUncensoredArray(a A.X) *Zzz

FromUncensoredArray convert slice to receiver fields

func (*Zzz) IdxCoords

func (z *Zzz) IdxCoords() int

IdxCoords return name of the index

func (*Zzz) IdxCreatedAt

func (z *Zzz) IdxCreatedAt() int

IdxCreatedAt return name of the index

func (*Zzz) IdxHeightMeter

func (z *Zzz) IdxHeightMeter() int

IdxHeightMeter return name of the index

func (*Zzz) IdxId

func (z *Zzz) IdxId() int

IdxId return name of the index

func (*Zzz) IdxName

func (z *Zzz) IdxName() int

IdxName return name of the index

func (*Zzz) SpaceName

func (z *Zzz) SpaceName() string

SpaceName returns full package and table name

func (*Zzz) SpatialIndexCoords

func (z *Zzz) SpatialIndexCoords() string

SpatialIndexCoords return spatial index name

func (*Zzz) SqlCoords

func (z *Zzz) SqlCoords() string

SqlCoords return name of the column being indexed

func (*Zzz) SqlCreatedAt

func (z *Zzz) SqlCreatedAt() string

SqlCreatedAt return name of the column being indexed

func (*Zzz) SqlHeightMeter

func (z *Zzz) SqlHeightMeter() string

SqlHeightMeter return name of the column being indexed

func (*Zzz) SqlId

func (z *Zzz) SqlId() string

SqlId return name of the column being indexed

func (*Zzz) SqlName

func (z *Zzz) SqlName() string

SqlName return name of the column being indexed

func (*Zzz) SqlSelectAllFields

func (z *Zzz) SqlSelectAllFields() string

SqlSelectAllFields generate Sql select fields

func (*Zzz) SqlSelectAllUncensoredFields

func (z *Zzz) SqlSelectAllUncensoredFields() string

SqlSelectAllUncensoredFields generate Sql select fields

func (*Zzz) SqlTableName

func (z *Zzz) SqlTableName() string

SqlTableName returns quoted table name

func (*Zzz) ToArray

func (z *Zzz) ToArray() A.X

ToArray receiver fields to slice

func (*Zzz) ToUpdateArray

func (z *Zzz) ToUpdateArray() *tarantool.Operations

ToUpdateArray generate slice of update command

func (*Zzz) Total

func (z *Zzz) Total() int64

Total count number of rows

func (*Zzz) UniqueIndexId

func (z *Zzz) UniqueIndexId() string

Jump to

Keyboard shortcuts

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