Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-29 | dbshell.rake: Use `DBShell::DatabaseClient` | Teddy Wing | |
Instead of calling `DBShell::Sqlite3Client` directly, call the wrapper class that will delegate to `Sqlite3Client`, `PostgresClient`, etc. depending on the value of `adapter` in the database connection params passed in. This allows us to have a single interface that we can call from the Rake task that can handle any of the database adapters that we support. | |||
2017-04-29 | Add `DBShell::DatabaseClient` | Teddy Wing | |
A more generic interface to specific database adapter clients. This class will act as a frontend to the others. Calling its `.runshell()` will call the appropriate `.runshell()` for the adapter provided in `connection_params`. This way, we have a single entry point to start a database shell from the Rake `dbshell` task. |