Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli "reflect" command #31

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

cli "reflect" command #31

wants to merge 22 commits into from

Conversation

franklx
Copy link
Contributor

@franklx franklx commented Jul 24, 2023

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 franklx changed the title cli reflect command cli reflect" command Jul 24, 2023
@franklx franklx changed the title cli reflect" command cli "reflect" command Jul 24, 2023
@kurtbuilds
Copy link
Owner

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

franklx pushed a commit to franklx/ormlite that referenced this pull request Aug 18, 2023
@eboody
Copy link

eboody commented Dec 5, 2024

this would be so sick! this already an instant favorite crate and its not even done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants