kurtbuilds / ormlite

An ORM in Rust for developers that love SQL.
https://crates.io/crates/ormlite
MIT License
215 stars 11 forks source link

Working to make the CLI support sqlite, and allow to create migration with sqlite #51

Open lefuturiste opened 1 month ago

lefuturiste commented 1 month ago

Hi,

I'm currently working to integrate sqlite into the ormlite CLI.

lefuturiste commented 1 month ago

So it will require to also add sqlite support to kurtbuilds/sqlmo

kurtbuilds commented 1 month ago

That's awesome! PRs definitely welcome for both.

lefuturiste commented 1 month ago

I'm a relative beginner to complex typing, trait, lifetime in rust so it's difficult for me to navigate the shear mass of code. I tried to go full in and try adding feature "sqlite" but it's too difficult for now. For now the best bet for me is to begin by duplicating the cli crate into cli_sqlite to workout what's needed and have a prototype.

lefuturiste commented 1 month ago

The main problem is to make the argument "conn" that represent "Connection" configurable to be either PgConnection or SqliteConnection.