Skip to content

Commit

Permalink
schemerz: Rename the one API with schemer in its name
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Oct 15, 2024
1 parent b71d382 commit 2326fdf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions schemerz-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl<'a> Adapter for PostgresAdapter<'a> {
mod tests {
use super::*;
use postgres::NoTls;
use schemerz::test_schemer_adapter;
use schemerz::test_schemerz_adapter;
use schemerz::testing::*;

impl PostgresMigration for TestMigration {}
Expand All @@ -196,7 +196,7 @@ mod tests {
adapter
}

test_schemer_adapter!(
test_schemerz_adapter!(
let mut conn = build_test_connection(),
build_test_adapter(&mut conn));
}
4 changes: 2 additions & 2 deletions schemerz-rusqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl<'a, E: From<RusqliteError> + Sync + Send + Error + 'static> Adapter
mod tests {
use super::*;
use rusqlite::Error as RusqliteError;
use schemerz::test_schemer_adapter;
use schemerz::test_schemerz_adapter;
use schemerz::testing::*;

impl RusqliteMigration for TestMigration {
Expand All @@ -217,7 +217,7 @@ mod tests {
adapter
}

test_schemer_adapter!(
test_schemerz_adapter!(
let mut conn = build_test_connection(),
build_test_adapter(&mut conn));
}
6 changes: 6 additions & 0 deletions schemerz/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this library adheres to Rust's notion of
<!-- next-header -->
## [Unreleased]

### Added
- `schemerz::test_schemerz_adapter`

### Removed
- `schemerz::test_schemer_adapter` (use `test_schemerz_adapter` instead).

## [0.1.0] - 2024-10-15
Initial release. The API is identical to `schemer 0.2.1`.

Expand Down
2 changes: 1 addition & 1 deletion schemerz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,5 @@ pub mod tests {
}
}

test_schemer_adapter!(DefaultTestAdapter::new());
test_schemerz_adapter!(DefaultTestAdapter::new());
}
8 changes: 4 additions & 4 deletions schemerz/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ impl Migration for TestMigration {
/// MyAdapterType {}
/// }
///
/// test_schemer_adapter!(construct_my_adapter_test_fixture());
/// test_schemerz_adapter!(construct_my_adapter_test_fixture());
/// ```
#[macro_export]
macro_rules! test_schemer_adapter {
macro_rules! test_schemerz_adapter {
($constructor:expr) => {
test_schemer_adapter!({}, $constructor);
test_schemerz_adapter!({}, $constructor);
};
($setup:stmt, $constructor:expr) => {
test_schemer_adapter!($setup, $constructor,
test_schemerz_adapter!($setup, $constructor,
test_single_migration,
test_migration_chain,
test_multi_component_dag,
Expand Down

0 comments on commit 2326fdf

Please sign in to comment.