You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very application specific. In SeaORM's case, the external I/O is handled by `rusqlite` and `sqlx` respectively. Their APIs differ significantly, that's why we have written `sea-query-sqlx` and `sea-query-rusqlite` to align them.
251
+
This is very application specific. In SeaORM's case, the external I/O is handled by `sqlx` and `rusqlite` respectively. Their APIs differ significantly, that's why we have written `sea-query-sqlx` and `sea-query-rusqlite` to align their interfaces.
244
252
245
-
For HTTP requests, you can simply use the sync and async versions of `Client` in different contexts.
253
+
For HTTP requests, you can simply use the sync and async versions of `reqwest::Client` in different contexts.
246
254
247
255
For file I/O, the API difference between sync and async Rust is very small.
248
256
249
257
## Conclusion: SQLite + SeaORM Sync = ⚡
250
258
251
259
You can now use `sea-orm-sync` in CLI programs, and only bringing in small number of additional dependencies compared to having to bring in the async ecosystem.
252
260
253
-
In fact, the compilation time speaks for itself. The async version of [quickstart](https://github.com/SeaQL/sea-orm/blob/master/examples/quickstart/src/main.rs) took 30 seconds to compile, while the [sync version](https://github.com/SeaQL/sea-orm/blob/master/sea-orm-sync/examples/quickstart/src/main.rs) only took 15 seconds!
261
+
The compilation time speaks for itself. The async version of [quickstart](https://github.com/SeaQL/sea-orm/blob/master/examples/quickstart/src/main.rs) took 30 seconds to compile, while the [sync version](https://github.com/SeaQL/sea-orm/blob/master/sea-orm-sync/examples/quickstart/src/main.rs) only took 15 seconds!
254
262
255
-
Right now only `rusqlite` is supported, but SeaORM's entire API surface is available. It's a breeze to add SQLite query capabilities to CLI programs where async would be overkill.
263
+
Right now only `rusqlite` is supported, but SeaORM's entire API surface is available: including nested transactions. It's a breeze to add SQLite query capabilities to CLI programs where async would be overkill.
0 commit comments