├── .cargo └── config.toml ├── .github └── workflows │ ├── cargo-publish.yaml │ ├── ci.yml │ ├── publishing.yml │ └── releases.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── Cross.toml ├── Dockerfile ├── LICENSE ├── README.md ├── assets └── logo_wide.svg ├── deny.toml ├── example_config.toml ├── examples ├── Cargo.toml ├── migrations │ ├── V1__initial.sql │ ├── V2__add_cars_table.sql │ └── V3__add_brand_to_cars_table.rs └── src │ └── main.rs ├── refinery ├── Cargo.toml ├── README.md ├── src │ └── lib.rs └── tests │ ├── migrations │ ├── V1-2 │ │ ├── V1__initial.rs │ │ └── V2__add_cars_and_motos_table.sql │ ├── V3 │ │ └── V3__add_brand_to_cars_table.sql │ └── V4__add_year_to_motos_table.rs │ ├── migrations_broken │ ├── V1__initial.sql │ ├── V2__add_cars_table.sql │ └── V3__add_brand_to_cars_table.sql │ ├── migrations_int8 │ ├── U20240504090241__initial.rs │ ├── U20240504090301__add_cars_and_motos_table.sql │ ├── U20240504090322__add_brand_to_cars_table.sql │ └── U20240504090343__add_year_to_motos_table.rs │ ├── migrations_missing │ └── V2__add_cars_table.sql │ ├── migrations_unversioned │ └── U0__merge_out_of_order.sql │ ├── mysql.rs │ ├── mysql_async.rs │ ├── mysql_refinery.toml │ ├── postgres.rs │ ├── postgres_refinery.toml │ ├── rusqlite.rs │ ├── sqlite_refinery.toml │ ├── tiberius.rs │ ├── tiberius_refinery.toml │ └── tokio_postgres.rs ├── refinery_cli ├── Cargo.toml ├── README.md ├── src │ ├── cli.rs │ ├── main.rs │ ├── migrate.rs │ └── setup.rs └── tests │ └── cli.rs ├── refinery_core ├── Cargo.toml └── src │ ├── config.rs │ ├── drivers │ ├── config.rs │ ├── mod.rs │ ├── mysql.rs │ ├── mysql_async.rs │ ├── postgres.rs │ ├── rusqlite.rs │ ├── tiberius.rs │ └── tokio_postgres.rs │ ├── error.rs │ ├── lib.rs │ ├── runner.rs │ ├── traits │ ├── async.rs │ ├── mod.rs │ └── sync.rs │ └── util.rs └── refinery_macros ├── Cargo.toml └── src └── lib.rs /.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.cargo/config.toml -------------------------------------------------------------------------------- /.github/workflows/cargo-publish.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.github/workflows/cargo-publish.yaml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/publishing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.github/workflows/publishing.yml -------------------------------------------------------------------------------- /.github/workflows/releases.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.github/workflows/releases.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Cross.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/Cross.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/README.md -------------------------------------------------------------------------------- /assets/logo_wide.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/assets/logo_wide.svg -------------------------------------------------------------------------------- /deny.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/deny.toml -------------------------------------------------------------------------------- /example_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/example_config.toml -------------------------------------------------------------------------------- /examples/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/examples/Cargo.toml -------------------------------------------------------------------------------- /examples/migrations/V1__initial.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/examples/migrations/V1__initial.sql -------------------------------------------------------------------------------- /examples/migrations/V2__add_cars_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/examples/migrations/V2__add_cars_table.sql -------------------------------------------------------------------------------- /examples/migrations/V3__add_brand_to_cars_table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/examples/migrations/V3__add_brand_to_cars_table.rs -------------------------------------------------------------------------------- /examples/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/examples/src/main.rs -------------------------------------------------------------------------------- /refinery/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/Cargo.toml -------------------------------------------------------------------------------- /refinery/README.md: -------------------------------------------------------------------------------- 1 | ../README.md -------------------------------------------------------------------------------- /refinery/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/src/lib.rs -------------------------------------------------------------------------------- /refinery/tests/migrations/V1-2/V1__initial.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations/V1-2/V1__initial.rs -------------------------------------------------------------------------------- /refinery/tests/migrations/V1-2/V2__add_cars_and_motos_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations/V1-2/V2__add_cars_and_motos_table.sql -------------------------------------------------------------------------------- /refinery/tests/migrations/V3/V3__add_brand_to_cars_table.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE cars 2 | ADD brand varchar(255); 3 | -------------------------------------------------------------------------------- /refinery/tests/migrations/V4__add_year_to_motos_table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations/V4__add_year_to_motos_table.rs -------------------------------------------------------------------------------- /refinery/tests/migrations_broken/V1__initial.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_broken/V1__initial.sql -------------------------------------------------------------------------------- /refinery/tests/migrations_broken/V2__add_cars_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_broken/V2__add_cars_table.sql -------------------------------------------------------------------------------- /refinery/tests/migrations_broken/V3__add_brand_to_cars_table.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE non_existent 2 | ADD brand varchar(255); 3 | -------------------------------------------------------------------------------- /refinery/tests/migrations_int8/U20240504090241__initial.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_int8/U20240504090241__initial.rs -------------------------------------------------------------------------------- /refinery/tests/migrations_int8/U20240504090301__add_cars_and_motos_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_int8/U20240504090301__add_cars_and_motos_table.sql -------------------------------------------------------------------------------- /refinery/tests/migrations_int8/U20240504090322__add_brand_to_cars_table.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE cars 2 | ADD brand varchar(255); 3 | -------------------------------------------------------------------------------- /refinery/tests/migrations_int8/U20240504090343__add_year_to_motos_table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_int8/U20240504090343__add_year_to_motos_table.rs -------------------------------------------------------------------------------- /refinery/tests/migrations_missing/V2__add_cars_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_missing/V2__add_cars_table.sql -------------------------------------------------------------------------------- /refinery/tests/migrations_unversioned/U0__merge_out_of_order.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/migrations_unversioned/U0__merge_out_of_order.sql -------------------------------------------------------------------------------- /refinery/tests/mysql.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/mysql.rs -------------------------------------------------------------------------------- /refinery/tests/mysql_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/mysql_async.rs -------------------------------------------------------------------------------- /refinery/tests/mysql_refinery.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/mysql_refinery.toml -------------------------------------------------------------------------------- /refinery/tests/postgres.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/postgres.rs -------------------------------------------------------------------------------- /refinery/tests/postgres_refinery.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/postgres_refinery.toml -------------------------------------------------------------------------------- /refinery/tests/rusqlite.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/rusqlite.rs -------------------------------------------------------------------------------- /refinery/tests/sqlite_refinery.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/sqlite_refinery.toml -------------------------------------------------------------------------------- /refinery/tests/tiberius.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/tiberius.rs -------------------------------------------------------------------------------- /refinery/tests/tiberius_refinery.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/tiberius_refinery.toml -------------------------------------------------------------------------------- /refinery/tests/tokio_postgres.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery/tests/tokio_postgres.rs -------------------------------------------------------------------------------- /refinery_cli/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/Cargo.toml -------------------------------------------------------------------------------- /refinery_cli/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/README.md -------------------------------------------------------------------------------- /refinery_cli/src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/src/cli.rs -------------------------------------------------------------------------------- /refinery_cli/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/src/main.rs -------------------------------------------------------------------------------- /refinery_cli/src/migrate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/src/migrate.rs -------------------------------------------------------------------------------- /refinery_cli/src/setup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/src/setup.rs -------------------------------------------------------------------------------- /refinery_cli/tests/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_cli/tests/cli.rs -------------------------------------------------------------------------------- /refinery_core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/Cargo.toml -------------------------------------------------------------------------------- /refinery_core/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/config.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/config.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/mod.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/mysql.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/mysql.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/mysql_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/mysql_async.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/postgres.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/postgres.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/rusqlite.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/rusqlite.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/tiberius.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/tiberius.rs -------------------------------------------------------------------------------- /refinery_core/src/drivers/tokio_postgres.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/drivers/tokio_postgres.rs -------------------------------------------------------------------------------- /refinery_core/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/error.rs -------------------------------------------------------------------------------- /refinery_core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/lib.rs -------------------------------------------------------------------------------- /refinery_core/src/runner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/runner.rs -------------------------------------------------------------------------------- /refinery_core/src/traits/async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/traits/async.rs -------------------------------------------------------------------------------- /refinery_core/src/traits/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/traits/mod.rs -------------------------------------------------------------------------------- /refinery_core/src/traits/sync.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/traits/sync.rs -------------------------------------------------------------------------------- /refinery_core/src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_core/src/util.rs -------------------------------------------------------------------------------- /refinery_macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_macros/Cargo.toml -------------------------------------------------------------------------------- /refinery_macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-db/refinery/HEAD/refinery_macros/src/lib.rs --------------------------------------------------------------------------------