v0.7.0

Removed APIs

Last updated


This page lists every exported ToriiDB symbol that has been removed, the release that removed it, and what to use instead.

Removed Symbols


SymbolPackageRemoved inLast presentReplacement
Entry.JSONcore/storeRemoved in v0.7.0v0.6.2Marshal the Entry fields you need yourself; it serialized the in-memory entry for the per-key JSON mirror, which was removed
WriteFilecore/utilsRemoved in v0.6.0v0.5.2No public replacement in ToriiDB; use WriteFile from github.com/pardnchiu/go-pkg/filesystem
FindOperationcore/storeRemoved in v0.4.0v0.3.0filter.Operator
ParseFindOpcore/storeRemoved in v0.4.0v0.3.0filter.AtoOperation
FindEqualTocore/storeRemoved in v0.4.0v0.3.0filter.EqualTo
FindGreaterThancore/storeRemoved in v0.4.0v0.3.0filter.GreaterThan
FindGreaterThanOrEqualTocore/storeRemoved in v0.4.0v0.3.0filter.GreaterThanOrEqualTo
FindLessThancore/storeRemoved in v0.4.0v0.3.0filter.LessThan
FindLessThanOrEqualTocore/storeRemoved in v0.4.0v0.3.0filter.LessThanOrEqualTo
FindLIKEcore/storeRemoved in v0.4.0v0.3.0filter.Like

Methods Moved Off *Store


Removed in v0.4.1 as methods declared on *Store (last present in v0.4.0): Current, DB, Del, DelField, Exec, Exist, ExistField, Expire, ExpireAt, Find, Get, GetField, Incr, IncrField, Keys, Persist, Query, Select, Set, SetField, TTL, Type, TypeField.
They moved to the unexported core type that both Store and Session embed, so calls such as torii.Get(key) still compile on a *Store and now also work on a *Session. Query had already changed in v0.4.0 from (field, op, value, limit) to (f filter.Filter, limit).

中文