21 releases (5 breaking)

Uses new Rust 2021

0.6.8 Jan 6, 2022
0.6.7 Jan 6, 2022
0.5.1 Dec 30, 2021
0.4.4 Dec 28, 2021
0.1.2 Dec 21, 2021

#2025 in Command line utilities

Download history 130/week @ 2022-05-27 148/week @ 2022-06-03 2/week @ 2022-06-17 22/week @ 2022-07-01 22/week @ 2022-07-08 43/week @ 2022-07-15 43/week @ 2022-07-22 23/week @ 2022-07-29 22/week @ 2022-08-05 20/week @ 2022-08-19 22/week @ 2022-08-26 22/week @ 2022-09-09

64 downloads per month

MIT/Apache and LGPL-3.0

33KB
855 lines

oomplay

CICD license crates.io release

Playground manager for oomstore.

Supported playgrounds

  • Redis
  • Postgres
  • MySQL
  • DynamoDB
  • Cassandra
  • TiDB
  • TiDBExt
  • TiKV
  • TiKVExt
  • SQLite
  • SnowflakeExt
  • BigQueryExt
  • RedshiftExt

Postfix Ext means using the external service supplied by the user.

Usage

$ oomplay --help
oomplay 0.5.0
Playground manager for oomstore

USAGE:
    oomplay <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    init          Initialize playgrounds
    stop          Stop playgrounds
    list          List supported playgrounds
    completion    Output shell completion code

Example

$ oomplay init redis postgres
[*] 🎮 Initializing oomplay-redis ...
[*] 📡 Pinging oomplay-redis ...
[*] 🎮 Initializing oomplay-postgres ...
[*] 📡 Pinging oomplay-postgres ...
[*] 🚚 Pulling image 'redis:alpine' ...
[*] 📦 Creating container oomplay-postgres ...
[*] 🚀 Starting container oomplay-postgres ...
[*] 📡 Pinging oomplay-postgres ...
[*] 📡 Pinging oomplay-postgres ...
[*] 📡 Pinging oomplay-postgres ...
[*] 📡 Pinging oomplay-postgres ...
[*] 💫 Initializing oomplay-postgres ...
[*] 🟢 oomplay-postgres is ready. (8.376110205s)
[*] 📦 Creating container oomplay-redis ...
[*] 🚀 Starting container oomplay-redis ...
[*] 📡 Pinging oomplay-redis ...
[*] 💫 Initializing oomplay-redis ...
[*] 🟢 oomplay-redis is ready. (15.544168376s)
$ oomplay stop redis postgres
[*] 🔌 Stopping oomplay-redis ...
[*] 🔌 Stopping oomplay-postgres ...
[*] 🔴 oomplay-redis stopped.
[*] 🔴 oomplay-postgres stopped.

SnowflakeExt SnowflakeExt playground requires the following environment variables:

SNOWFLAKE_ACCOUNT
SNOWFLAKE_USER
SNOWFLAKE_PASSWORD
SNOWFLAKE_DATABASE

BigQueryExt BigQueryExt playground requires the following environment variables:

BIGQUERY_CREDENTIALS
BIGQUERY_DATASET_ID

RedshiftExt RedshiftExt playground requires the following environment variables:

REDSHIFT_HOST
REDSHIFT_USER
REDSHIFT_DATABASE
REDSHIFT_PASSWORD
REDSHIFT_DEFAULT_DATABASE

Installation

On macOS

You can install oomplay with Homebrew:

brew tap oom-ai/oom-ai
brew install oomplay

From binaries

Pre-built versions of oomplay for various architectures are available at Github release page.

From source

oomplay is also published on crates.io. If you have Rust toolchains (nightly) installed you can use cargo to install it from source:

cargo install --locked oomplay

If you want the latest version, clone this repository and run cargo install --path ..

Dependencies

~14–22MB
~444K SLoC