Versions in this module Expand all Collapse all v1 v1.12.2 Jan 11, 2024 v1.12.1 Aug 7, 2023 v1.12.0 Jun 7, 2023 v1.11.0 May 18, 2023 Changes in this version + type BaseOpts struct + Timeout OptUint + VshardRouter OptString + func (opts BaseOpts) EncodeMsgpack(enc *encoder) error + type BoolResult struct + Value bool + func (r *BoolResult) DecodeMsgpack(d *decoder) error + type BorderOpts struct + Fields OptTuple + Timeout OptUint + VshardRouter OptString + func (opts BorderOpts) EncodeMsgpack(enc *encoder) error + type Condition struct + Field string + Operator Operator + Value interface{} + type CountOpts struct + Balance OptBool + BucketId OptUint + ForceMapCall OptBool + Fullscan OptBool + Mode OptString + PreferReplica OptBool + Timeout OptUint + VshardRouter OptString + YieldEvery OptUint + func (opts CountOpts) EncodeMsgpack(enc *encoder) error + type CountRequest struct + func MakeCountRequest(space string) CountRequest + func (req CountRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req CountRequest) Conditions(conditions []Condition) CountRequest + func (req CountRequest) Context(ctx context.Context) CountRequest + func (req CountRequest) Opts(opts CountOpts) CountRequest + type CountResult = NumberResult + type DeleteOpts = SimpleOperationOpts + type DeleteRequest struct + func MakeDeleteRequest(space string) DeleteRequest + func (req DeleteRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req DeleteRequest) Context(ctx context.Context) DeleteRequest + func (req DeleteRequest) Key(key Tuple) DeleteRequest + func (req DeleteRequest) Opts(opts DeleteOpts) DeleteRequest + type Error struct + ClassName string + Err string + File string + Line uint64 + Stack string + Str string + func (e *Error) DecodeMsgpack(d *decoder) error + func (err Error) Error() string + type ErrorMany struct + Errors []Error + func (e *ErrorMany) DecodeMsgpack(d *decoder) error + func (errs ErrorMany) Error() string + type FieldFormat struct + IsNullable bool + Name string + Type string + func (format *FieldFormat) DecodeMsgpack(d *decoder) error + type GetOpts struct + Balance OptBool + BucketId OptUint + Fields OptTuple + Mode OptString + PreferReplica OptBool + Timeout OptUint + VshardRouter OptString + func (opts GetOpts) EncodeMsgpack(enc *encoder) error + type GetRequest struct + func MakeGetRequest(space string) GetRequest + func (req GetRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req GetRequest) Context(ctx context.Context) GetRequest + func (req GetRequest) Key(key Tuple) GetRequest + func (req GetRequest) Opts(opts GetOpts) GetRequest + type InsertManyOpts = OperationManyOpts + type InsertManyRequest struct + func MakeInsertManyRequest(space string) InsertManyRequest + func (req InsertManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req InsertManyRequest) Context(ctx context.Context) InsertManyRequest + func (req InsertManyRequest) Opts(opts InsertManyOpts) InsertManyRequest + func (req InsertManyRequest) Tuples(tuples []Tuple) InsertManyRequest + type InsertObjectManyOpts = OperationObjectManyOpts + type InsertObjectManyRequest struct + func MakeInsertObjectManyRequest(space string) InsertObjectManyRequest + func (req InsertObjectManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req InsertObjectManyRequest) Context(ctx context.Context) InsertObjectManyRequest + func (req InsertObjectManyRequest) Objects(objects []Object) InsertObjectManyRequest + func (req InsertObjectManyRequest) Opts(opts InsertObjectManyOpts) InsertObjectManyRequest + type InsertObjectOpts = SimpleOperationObjectOpts + type InsertObjectRequest struct + func MakeInsertObjectRequest(space string) InsertObjectRequest + func (req InsertObjectRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req InsertObjectRequest) Context(ctx context.Context) InsertObjectRequest + func (req InsertObjectRequest) Object(object Object) InsertObjectRequest + func (req InsertObjectRequest) Opts(opts InsertObjectOpts) InsertObjectRequest + type InsertOpts = SimpleOperationOpts + type InsertRequest struct + func MakeInsertRequest(space string) InsertRequest + func (req InsertRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req InsertRequest) Context(ctx context.Context) InsertRequest + func (req InsertRequest) Opts(opts InsertOpts) InsertRequest + func (req InsertRequest) Tuple(tuple Tuple) InsertRequest + type LenOpts = BaseOpts + type LenRequest struct + func MakeLenRequest(space string) LenRequest + func (req LenRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req LenRequest) Context(ctx context.Context) LenRequest + func (req LenRequest) Opts(opts LenOpts) LenRequest + type LenResult = NumberResult + type MapObject map[string]interface + func (o MapObject) EncodeMsgpack(enc *encoder) + func UnflattenRows(tuples []interface{}, format []interface{}) ([]MapObject, error) + type MaxOpts = BorderOpts + type MaxRequest struct + func MakeMaxRequest(space string) MaxRequest + func (req MaxRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req MaxRequest) Context(ctx context.Context) MaxRequest + func (req MaxRequest) Index(index interface{}) MaxRequest + func (req MaxRequest) Opts(opts MaxOpts) MaxRequest + type MinOpts = BorderOpts + type MinRequest struct + func MakeMinRequest(space string) MinRequest + func (req MinRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req MinRequest) Context(ctx context.Context) MinRequest + func (req MinRequest) Index(index interface{}) MinRequest + func (req MinRequest) Opts(opts MinOpts) MinRequest + type NumberResult struct + Value uint64 + func (r *NumberResult) DecodeMsgpack(d *decoder) error + type Object interface + EncodeMsgpack func(enc *encoder) + type ObjectOperationsData struct + Object Object + Operations []Operation + type Operation struct + Field interface{} + Operator Operator + Value interface{} + type OperationManyOpts struct + Fields OptTuple + RollbackOnError OptBool + StopOnError OptBool + Timeout OptUint + VshardRouter OptString + func (opts OperationManyOpts) EncodeMsgpack(enc *encoder) error + type OperationObjectManyOpts struct + Fields OptTuple + RollbackOnError OptBool + SkipNullabilityCheckOnFlatten OptBool + StopOnError OptBool + Timeout OptUint + VshardRouter OptString + func (opts OperationObjectManyOpts) EncodeMsgpack(enc *encoder) error + type Operator string + const Add + const And + const Assign + const Delete + const Eq + const Ge + const Gt + const Insert + const Le + const Lt + const Or + const Splice + const Sub + const Xor + type OptBool struct + func MakeOptBool(value bool) OptBool + func (opt OptBool) Get() (bool, bool) + type OptInt struct + func MakeOptInt(value int) OptInt + func (opt OptInt) Get() (int, bool) + type OptString struct + func MakeOptString(value string) OptString + func (opt OptString) Get() (string, bool) + type OptTuple struct + func MakeOptTuple(tuple interface{}) OptTuple + func (o *OptTuple) Get() (interface{}, bool) + type OptUint struct + func MakeOptUint(value uint) OptUint + func (opt OptUint) Get() (uint, bool) + type ReplaceManyOpts = OperationManyOpts + type ReplaceManyRequest struct + func MakeReplaceManyRequest(space string) ReplaceManyRequest + func (req ReplaceManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req ReplaceManyRequest) Context(ctx context.Context) ReplaceManyRequest + func (req ReplaceManyRequest) Opts(opts ReplaceManyOpts) ReplaceManyRequest + func (req ReplaceManyRequest) Tuples(tuples []Tuple) ReplaceManyRequest + type ReplaceObjectManyOpts = OperationObjectManyOpts + type ReplaceObjectManyRequest struct + func MakeReplaceObjectManyRequest(space string) ReplaceObjectManyRequest + func (req ReplaceObjectManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req ReplaceObjectManyRequest) Context(ctx context.Context) ReplaceObjectManyRequest + func (req ReplaceObjectManyRequest) Objects(objects []Object) ReplaceObjectManyRequest + func (req ReplaceObjectManyRequest) Opts(opts ReplaceObjectManyOpts) ReplaceObjectManyRequest + type ReplaceObjectOpts = SimpleOperationObjectOpts + type ReplaceObjectRequest struct + func MakeReplaceObjectRequest(space string) ReplaceObjectRequest + func (req ReplaceObjectRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req ReplaceObjectRequest) Context(ctx context.Context) ReplaceObjectRequest + func (req ReplaceObjectRequest) Object(object Object) ReplaceObjectRequest + func (req ReplaceObjectRequest) Opts(opts ReplaceObjectOpts) ReplaceObjectRequest + type ReplaceOpts = SimpleOperationOpts + type ReplaceRequest struct + func MakeReplaceRequest(space string) ReplaceRequest + func (req ReplaceRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req ReplaceRequest) Context(ctx context.Context) ReplaceRequest + func (req ReplaceRequest) Opts(opts ReplaceOpts) ReplaceRequest + func (req ReplaceRequest) Tuple(tuple Tuple) ReplaceRequest + type Result struct + Metadata []FieldFormat + Rows interface{} + func MakeResult(rowType reflect.Type) Result + func (r *Result) DecodeMsgpack(d *decoder) error + type SelectOpts struct + After OptTuple + Balance OptBool + BatchSize OptUint + BucketId OptUint + Fields OptTuple + First OptInt + ForceMapCall OptBool + Fullscan OptBool + Mode OptString + PreferReplica OptBool + Timeout OptUint + VshardRouter OptString + func (opts SelectOpts) EncodeMsgpack(enc *encoder) error + type SelectRequest struct + func MakeSelectRequest(space string) SelectRequest + func (req SelectRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req SelectRequest) Conditions(conditions []Condition) SelectRequest + func (req SelectRequest) Context(ctx context.Context) SelectRequest + func (req SelectRequest) Opts(opts SelectOpts) SelectRequest + type SimpleOperationObjectOpts struct + BucketId OptUint + Fields OptTuple + SkipNullabilityCheckOnFlatten OptBool + Timeout OptUint + VshardRouter OptString + func (opts SimpleOperationObjectOpts) EncodeMsgpack(enc *encoder) error + type SimpleOperationOpts struct + BucketId OptUint + Fields OptTuple + Timeout OptUint + VshardRouter OptString + func (opts SimpleOperationOpts) EncodeMsgpack(enc *encoder) error + type StatsRequest struct + func MakeStatsRequest() StatsRequest + func (req StatsRequest) Async() bool + func (req StatsRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req StatsRequest) Code() int32 + func (req StatsRequest) Context(ctx context.Context) StatsRequest + func (req StatsRequest) Ctx() context.Context + func (req StatsRequest) Space(space string) StatsRequest + type StatusTable struct + IsMaster bool + Message string + Status string + func (statusTable *StatusTable) DecodeMsgpack(d *decoder) error + type StorageInfoOpts = BaseOpts + type StorageInfoRequest struct + func MakeStorageInfoRequest() StorageInfoRequest + func (req StorageInfoRequest) Async() bool + func (req StorageInfoRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req StorageInfoRequest) Code() int32 + func (req StorageInfoRequest) Context(ctx context.Context) StorageInfoRequest + func (req StorageInfoRequest) Ctx() context.Context + func (req StorageInfoRequest) Opts(opts StorageInfoOpts) StorageInfoRequest + type StorageInfoResult struct + Info map[string]StatusTable + func (r *StorageInfoResult) DecodeMsgpack(d *decoder) error + type TruncateOpts = BaseOpts + type TruncateRequest struct + func MakeTruncateRequest(space string) TruncateRequest + func (req TruncateRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req TruncateRequest) Context(ctx context.Context) TruncateRequest + func (req TruncateRequest) Opts(opts TruncateOpts) TruncateRequest + type TruncateResult = BoolResult + type Tuple = interface + type TupleOperationsData struct + Operations []Operation + Tuple Tuple + type UpdateOpts = SimpleOperationOpts + type UpdateRequest struct + func MakeUpdateRequest(space string) UpdateRequest + func (req UpdateRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req UpdateRequest) Context(ctx context.Context) UpdateRequest + func (req UpdateRequest) Key(key Tuple) UpdateRequest + func (req UpdateRequest) Operations(operations []Operation) UpdateRequest + func (req UpdateRequest) Opts(opts UpdateOpts) UpdateRequest + type UpsertManyOpts = OperationManyOpts + type UpsertManyRequest struct + func MakeUpsertManyRequest(space string) UpsertManyRequest + func (req UpsertManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req UpsertManyRequest) Context(ctx context.Context) UpsertManyRequest + func (req UpsertManyRequest) Opts(opts UpsertManyOpts) UpsertManyRequest + func (req UpsertManyRequest) TuplesOperationsData(tuplesOperationData []TupleOperationsData) UpsertManyRequest + type UpsertObjectManyOpts = OperationManyOpts + type UpsertObjectManyRequest struct + func MakeUpsertObjectManyRequest(space string) UpsertObjectManyRequest + func (req UpsertObjectManyRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req UpsertObjectManyRequest) Context(ctx context.Context) UpsertObjectManyRequest + func (req UpsertObjectManyRequest) ObjectsOperationsData(objectsOperationData []ObjectOperationsData) UpsertObjectManyRequest + func (req UpsertObjectManyRequest) Opts(opts UpsertObjectManyOpts) UpsertObjectManyRequest + type UpsertObjectOpts = SimpleOperationOpts + type UpsertObjectRequest struct + func MakeUpsertObjectRequest(space string) UpsertObjectRequest + func (req UpsertObjectRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req UpsertObjectRequest) Context(ctx context.Context) UpsertObjectRequest + func (req UpsertObjectRequest) Object(object Object) UpsertObjectRequest + func (req UpsertObjectRequest) Operations(operations []Operation) UpsertObjectRequest + func (req UpsertObjectRequest) Opts(opts UpsertObjectOpts) UpsertObjectRequest + type UpsertOpts = SimpleOperationOpts + type UpsertRequest struct + func MakeUpsertRequest(space string) UpsertRequest + func (req UpsertRequest) Body(res tarantool.SchemaResolver, enc *encoder) error + func (req UpsertRequest) Context(ctx context.Context) UpsertRequest + func (req UpsertRequest) Operations(operations []Operation) UpsertRequest + func (req UpsertRequest) Opts(opts UpsertOpts) UpsertRequest + func (req UpsertRequest) Tuple(tuple Tuple) UpsertRequest Other modules containing this package github.com/tarantool/go-tarantool/v2