Mattia Righetti c5ea6c4435
feat: sqlx sqlite expose de/serialize (#3745)
* feat: implement serialze no copy on lockedsqlitehandle

* feat: implement serialize on sqliteconnection

* feat: implement deserialize on sqliteconnection and add sqlitebuf wrapper type

* refactor: misc sqlite type and deserialize refactoring

* chore: misc clippy refactoring

* fix: misc refactoring and fixes

- pass non-owned byte slice to deserialize
- `SqliteBufError` and better error handling
- more impl for `SqliteOnwedBuf` so it can be used as a slice
- default serialize for `SqliteConnection`

* refactor: move serialize and deserialize on worker thread

This implements `Command::Serialize` and `Command::Deserialize` and moves the
serialize and deserialize logic to the worker thread.

`Serialize` will need some more iterations as it's not clear whether it would
need to wait for other write transactions before running.

* refactor: misc refactoring and changes

- Merged deserialize module with serialize module
- Moved `SqliteOwnedBuf` into serialize module
- Fixed rustdocs

* chore: API tweaks, better docs, tests

* fix: unused import

* fix: export `SqliteOwnedBuf`, docs and safety tweaks

---------

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2025-03-02 14:29:29 -08:00
..
2024-06-13 13:11:36 -07:00
2024-06-13 13:11:36 -07:00
2024-06-13 13:11:36 -07:00
2025-02-04 10:53:05 -08:00
2024-06-13 13:11:36 -07:00
2024-06-13 13:11:36 -07:00
2024-07-20 12:59:52 -07:00
2023-07-31 13:27:04 -07:00
2024-05-31 12:42:36 -07:00
2024-07-20 12:59:52 -07:00
2025-02-22 13:33:14 -08:00
2024-10-04 21:34:18 -07:00
2024-06-13 13:11:36 -07:00
2024-05-31 12:42:36 -07:00
2025-01-13 05:57:25 -08:00
2024-06-13 13:11:36 -07:00