Crate crdb

Source

Modules§

broadcast
A multi-producer, multi-consumer broadcast queue. Each sent value is seen by all consumers.
chrono
Chrono: Date and Time for Rust
crdb_helpers
cron
A cron expression parser and schedule explorer
serde
Serde
serde_json
Serde JSON
sqlx
The async SQL toolkit for Rust, built with ❤️ by the LaunchBadge team.
waaaa
WebAssembly, Abstracted Away

Macros§

db

Structs§

ApiDb
BinPtr
ClientDb
ClientMessage
ClientStorageInfo
ClientVacuumSchedule
DbPtr
Decimal
Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.
EventId
Importance
LoginInfo
NewSession
Obj
ObjectData
ObjectId
PostgresDb
QueryId
ReadPermsChanges
RequestId
SavedObjectMeta
SavedQuery
SearchableString
Server
ServerVacuumSchedule
Session
SessionRef
SessionToken
SqliteDb
TypeId
Update
Updatedness
Updates
UpdatesWithSnap
UploadId
User
UsersWhoCanRead

Enums§

ConnectionEvent
Error
JsonPathItem
MaybeObject
Query
Request
ResponsePart
SerializableError
ServerMessage
One ServerMessage is supposed to hold as much data as possible without delaying updates, but still avoiding going too far above than 1M / message, to allow for better resumability.
UpdateData
Upload

Traits§

CanDoCallbacks
ClientSideDb
Config
CrdbFn
CrdbSyncFn
Db
DynSized
Event
Object
Note that for this trait to be implemented correctly, the Eq trait should be equivalent to equality of the JSON-serialized representation. In particular, this means that things like [HashMap]s should be banned, and [BTreeMap]s should be preferred.
ResultExt
ServerSideDb
SystemTimeExt

Functions§

check_string
check_strings
hash_binary
matches
Assumes that both value and pat have already been normalized. Checks whether value contains pattern pat.
normalize
normalizer_version

Type Aliases§

Result
UpdatesMap
UserUpdatesMap