#protection #low-level #csrf

rocket_sqlite_rw_pool

Read-Write SQLite pool for Rocket with query builder, migrations, and CSRF protection

2 releases

0.0.1-alpha2 Feb 19, 2024
0.0.1-alpha1 Jan 20, 2024

#12 in #csrf

MIT/Apache

70KB
1.5K SLoC

rocket_sqlite_rw_pool

This is a database pool based off of rocket_sync_db_pools which exposes low-level rusqlite connections and transactions. It also avoids deadlocks/errors with multiple writers by exposing separate pools for read and write connections.

Also provided:

  • Safe by default CSRF protection
  • Query builder for bulk inserts
  • Various query helpers
  • Migration support

This is provided AS-IS and is alpha-quality software. Lots of documentation and automated testing is still needed - but it works fine in some production applications already.

Dependencies

~51–85MB
~1.5M SLoC