Open buraktabn opened 2 months ago
Appreciate the work so far! Thanks for doing this, I know @yellowHatpro will appreciate the enum generation!
With this library, we could create many more generators for other things as well. For example, I'm working on creating redis json schemas in here: https://github.com/R3-Lab/sql-gen/commit/bdba71589372e33dda8ef478f9667cf96de9fa75. But Since we only focus only on the rust types and helpers for SQL, Redis may not have life in here :) lmk what you think
Appreciate the work so far! Thanks for doing this, I know @yellowHatpro will appreciate the enum generation!
Thanks a lot for this. I even had a column name type
in one of the tables, and I had to make it work by renaming it to r#type
.
The new features will definitely be helpful 🤩🤩
With this library, we could create many more generators for other things as well. For example, I'm working on creating redis json schemas in here: https://github.com/R3-Lab/sql-gen/commit/bdba71589372e33dda8ef478f9667cf96de9fa75. But Since we only focus only on the rust types and helpers for SQL, Redis may not have life in here :) lmk what you think
Yeah I think my intention is to maybe expand to support other DBs in future but it probably still would be SQL. If you split out the Redis part v. happy to mention and link to it in README :)
closes #12
I wanted to bypass geo types by making it String on the rust side to store the geom from SQL as a string. I've also added new features to integrate my project more.
Added:
--serde
flag if you wanna derive structs/enums with serde--datetime-lib
to selecttime
orchrono
crate to use. defaults tochrono
Fixed:
type
, it's a reserved keyword in Rust. So, I created a helper functionrust_type_fix
. (naming could be better)Notes: