This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Additional DB refactoring #314
Comments
DeliciousHair
added a commit
that referenced
this issue
Oct 14, 2021
The primary goal was to remove all of the calls to `serde_json::to_string()` for the data-handling, thus enabling us to do (more or less): ```rust Order { row.column, ... } ``` as well as clean up the SQL for easier reading. This has mostly been accomplished, with further refinements easily accomplished once the upstream issues in `sqlx` are addressed. See #314 for issues we are tracking.
Merged
DeliciousHair
added a commit
that referenced
this issue
Oct 14, 2021
The primary goal was to remove all of the calls to `serde_json::to_string()` for the data-handling, thus enabling us to do (more or less): ```rust Order { row.column, ... } ``` as well as clean up the SQL for easier reading. This has mostly been accomplished, with further refinements easily accomplished once the upstream issues in `sqlx` are addressed. See #314 for issues we are tracking.
bors bot
added a commit
that referenced
this issue
Oct 14, 2021
295: Db refactor r=thomaseizinger a=DeliciousHair DB code refactoring for #88 The primary goal was to remove all of the calls to `serde_json::to_string()` for the data-handling, thus enabling us to do (more or less): ```rust Order { row.column, ... } ``` as well as clean up the SQL for easier reading. This has mostly been accomplished, with further refinements easily accomplished once the upstream issues in `sqlx` are addressed. See #314 for issues we are tracking. Co-authored-by: DelicioiusHair <mshepit@gmail.com>
thomaseizinger
pushed a commit
that referenced
this issue
Oct 15, 2021
The primary goal was to remove all of the calls to `serde_json::to_string()` for the data-handling, thus enabling us to do (more or less): ```rust Order { row.column, ... } ``` as well as clean up the SQL for easier reading. This has mostly been accomplished, with further refinements easily accomplished once the upstream issues in `sqlx` are addressed. See #314 for issues we are tracking.
thomaseizinger
pushed a commit
that referenced
this issue
Oct 15, 2021
The primary goal was to remove all of the calls to `serde_json::to_string()` for the data-handling, thus enabling us to do (more or less): ```rust Order { row.column, ... } ``` as well as clean up the SQL for easier reading. This has mostly been accomplished, with further refinements easily accomplished once the upstream issues in `sqlx` are addressed. See #314 for issues we are tracking.
I just had an epiphany in regards to launchbadge/sqlx#1493. Custom derives are essentially just code generation, meaning they are bound to the same module privacy rules as hand-written code. Thus, if a custom derive can generate code, it must be possible to write this code by hand. @DeliciousHair I don't know how we failed to implement Perhaps the correct combination is:
|
Sounds plenty reasonable to me, I'll give it a shot! |
closing as outdated. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
#88 has been addressed about as much as we can for the moment via #295. However, the task is somewhat incomplete owing to features that have not yet been implemented in
sqlx
. This issue is thus a placeholder to track the external issues that will enable a more complete refactoring here. In particular:Decimal
forSqlite
backend launchbadge/sqlx#1489query_file!()
has inconsistent behaviour on Windows launchbadge/sqlx#1494The text was updated successfully, but these errors were encountered: