ormlite icon indicating copy to clipboard operation
ormlite copied to clipboard

cli "reflect" command

Open franklx opened this issue 1 year ago • 1 comments

This PR contains a first working implementation of Models struct code-generation by using live database reflection. Caveats:

  • Uses my KVec implementation for one-to-many relations (not yet in repo);
  • It's postgresql-only for now;
  • It's usable but incomplete (see TODO comment in reflect.rs);
  • It shouldn't be merged until KVec will be in repo (I'll open a dedicated PR);

franklx avatar Jul 24 '23 05:07 franklx

Wow! This is super cool.

I previously was using a very similar workflow using ChatGPT when I was migrating a django app from Python to Rust in my last professional role.

Can I email you about the work you're doing? Very curious to hear what and how you're using this. (My email is in my profile if you're not comfortable sharing publicly.)

kurtbuilds avatar Jul 24 '23 19:07 kurtbuilds