jayy-lmao / sql-gen

EF inspired codegen for Rust
MIT License
18 stars 6 forks source link

feat: New Functionalities #13

Open buraktabn opened 2 months ago

buraktabn commented 2 months ago

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:

Fixed:

Notes:

jayy-lmao commented 2 months ago

Appreciate the work so far! Thanks for doing this, I know @yellowHatpro will appreciate the enum generation!

buraktabn commented 2 months ago

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

yellowHatpro commented 2 months ago

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 🤩🤩

jayy-lmao commented 2 months ago

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 :)