CeresDB / sqlness

An ergonomic, opinionated framework for SQL integration test.
https://crates.io/crates/sqlness
Apache License 2.0
22 stars 7 forks source link

Add sqlness-cli to run cases for supported database implementation #38

Closed jiacai2050 closed 1 year ago

jiacai2050 commented 1 year ago
          https://crates.io/crates/mysql is a popular crates, so we can go with it first.

We can add a feature gate to enable this feature.

By doing this, we can make it easier to get started with sqlness, user only needs to handle the start/stop of their services.

I think we can go further, we can provide a cli for this default server, and let user start/stop service all by themselves, users can execute this cli against their servers directly, something like

sqlness-cli -t mysql -h localhost -p 3306 --case-dir some-directory

We can implement this in two steps, first to add default database implementation, then to add this cli.

Originally posted by @jiacai2050 in https://github.com/CeresDB/sqlness/issues/15#issuecomment-1371758769