fbucek / sqlxinsert

MIT License
18 stars 9 forks source link

add feature flags: `sqlite` and `postgres` #16

Closed 9glenda closed 9 months ago

9glenda commented 10 months ago

Enables sqlxinsert to be used without a dependency on sqlite and postgres. Which is especially useful for users only interested in the sqlite part or the postgres part. Both of the features are enabled by default and therefore are not breaking any working code.

This was tested only for sqlite. Because of me not having a postgres instance avaiable.

cargo test --no-default-features --features sqlite

The new features are names sqlite and postgres following the naming scheme of sqlx.

fbucek commented 9 months ago

Thanks for PR, I will look into it today. I hope.