Skip to main content

Crate adminx_mongo

Crate adminx_mongo 

Source

Structs§

MongoStorage
MongoDB-backed storage. Cheap to clone (the client is Arc internally).

Functions§

connect
Connect to MongoDB and return a ready storage handle.
init
Convenience: connect and register as the global adminx storage backend.
seed
Connect and run a batch of Mongo command documents (JSON strings, e.g. {"insert":"products","documents":[{...}]}), in order, returning the total affected document count. Self-contained — no set_storage needed. Used by adminx seed and by app startup code.