Skip to main content

Crate adminx_seaorm

Crate adminx_seaorm 

Source

Structs§

SeaOrmStorage
SeaORM-backed storage. Clone-cheap (the pool is Arc internally).

Functions§

connect
Open a connection pool from a database URL and return a ready storage. e.g. postgres://user:pass@host/db or mysql://user:pass@host/db.
init
Convenience: connect and register as the global adminx storage backend.
seed
Connect and run a batch of SQL statements (seeding / migrations), in order, returning the total rows affected. Self-contained — no set_storage needed. Used by adminx seed and by app startup code.