migr8 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- migr8-0.1.0/.gitignore +24 -0
- migr8-0.1.0/COMMERCIAL.md +14 -0
- migr8-0.1.0/LICENSE +661 -0
- migr8-0.1.0/LICENSING.md +43 -0
- migr8-0.1.0/PKG-INFO +166 -0
- migr8-0.1.0/README.md +137 -0
- migr8-0.1.0/deploy/apple-container/Containerfile +39 -0
- migr8-0.1.0/deploy/apple-container/README.md +135 -0
- migr8-0.1.0/deploy/apple-container/ctl.sh +238 -0
- migr8-0.1.0/deploy/apple-container/templates/oracle.toml.in +17 -0
- migr8-0.1.0/deploy/apple-container/templates/postgres.toml.in +11 -0
- migr8-0.1.0/docs/ACCEPTANCE.md +566 -0
- migr8-0.1.0/docs/ARCHITECTURE.md +279 -0
- migr8-0.1.0/docs/MANUAL.md +791 -0
- migr8-0.1.0/docs/ORACLE-CONNECTIONS.md +230 -0
- migr8-0.1.0/docs/SPEC.md +838 -0
- migr8-0.1.0/examples/oracle/manifest.toml +44 -0
- migr8-0.1.0/examples/oracle/migr8.toml +18 -0
- migr8-0.1.0/examples/oracle/migrations/010-create-orders/up.sql +17 -0
- migr8-0.1.0/examples/oracle/migrations/020-seed-orders/up.sql +7 -0
- migr8-0.1.0/examples/oracle/migrations/030-pkg-orders-spec/spec.sql +5 -0
- migr8-0.1.0/examples/oracle/migrations/040-pkg-orders-body/body.sql +7 -0
- migr8-0.1.0/examples/oracle/migrations/050-backfill-region/assumptions.py +4 -0
- migr8-0.1.0/examples/oracle/migrations/050-backfill-region/migration.py +47 -0
- migr8-0.1.0/examples/postgres/manifest.toml +33 -0
- migr8-0.1.0/examples/postgres/migr8.toml +14 -0
- migr8-0.1.0/examples/postgres/migrations/010-create-orders/up.sql +5 -0
- migr8-0.1.0/examples/postgres/migrations/020-seed-orders/up.sql +4 -0
- migr8-0.1.0/examples/postgres/migrations/030-concurrent-index/migration.py +21 -0
- migr8-0.1.0/examples/postgres/migrations/040-backfill-region/assumptions.py +4 -0
- migr8-0.1.0/examples/postgres/migrations/040-backfill-region/migration.py +35 -0
- migr8-0.1.0/examples/sqlite/manifest.toml +26 -0
- migr8-0.1.0/examples/sqlite/migr8.toml +18 -0
- migr8-0.1.0/examples/sqlite/migrations/001-create-orders/up.sql +7 -0
- migr8-0.1.0/examples/sqlite/migrations/002-seed-orders/up.sql +8 -0
- migr8-0.1.0/examples/sqlite/migrations/003-backfill-region/assumptions.py +6 -0
- migr8-0.1.0/examples/sqlite/migrations/003-backfill-region/migration.py +35 -0
- migr8-0.1.0/migr8 +23 -0
- migr8-0.1.0/pyproject.toml +155 -0
- migr8-0.1.0/src/migr8/__init__.py +12 -0
- migr8-0.1.0/src/migr8/adapters/__init__.py +61 -0
- migr8-0.1.0/src/migr8/adapters/base.py +1197 -0
- migr8-0.1.0/src/migr8/adapters/metadata.py +388 -0
- migr8-0.1.0/src/migr8/adapters/oracle.py +1472 -0
- migr8-0.1.0/src/migr8/adapters/postgres.py +868 -0
- migr8-0.1.0/src/migr8/adapters/sqlite.py +970 -0
- migr8-0.1.0/src/migr8/checks.py +116 -0
- migr8-0.1.0/src/migr8/cli.py +332 -0
- migr8-0.1.0/src/migr8/config.py +160 -0
- migr8-0.1.0/src/migr8/context.py +358 -0
- migr8-0.1.0/src/migr8/diagnostics.py +105 -0
- migr8-0.1.0/src/migr8/engine.py +593 -0
- migr8-0.1.0/src/migr8/errors.py +179 -0
- migr8-0.1.0/src/migr8/fingerprint.py +85 -0
- migr8-0.1.0/src/migr8/latch.py +67 -0
- migr8-0.1.0/src/migr8/loader.py +176 -0
- migr8-0.1.0/src/migr8/manifest.py +236 -0
- migr8-0.1.0/src/migr8/model.py +178 -0
- migr8-0.1.0/src/migr8/paths.py +183 -0
- migr8-0.1.0/src/migr8/readonly.py +292 -0
- migr8-0.1.0/src/migr8/reporting.py +161 -0
- migr8-0.1.0/src/migr8/sqltext.py +478 -0
- migr8-0.1.0/src/migr8/staging.py +151 -0
- migr8-0.1.0/src/migr8/statevalidate.py +302 -0
- migr8-0.1.0/src/migr8/testing/__init__.py +1 -0
- migr8-0.1.0/src/migr8/testing/hooks.py +66 -0
- migr8-0.1.0/src/migr8/version.py +10 -0
- migr8-0.1.0/testenv/.env.example +10 -0
- migr8-0.1.0/testenv/README.md +83 -0
- migr8-0.1.0/testenv/compose.yaml +66 -0
- migr8-0.1.0/testenv/dbctl.sh +152 -0
- migr8-0.1.0/testenv/provision_oracle.py +116 -0
- migr8-0.1.0/testenv/provision_postgres.py +51 -0
- migr8-0.1.0/testenv/provision_tls.sh +209 -0
- migr8-0.1.0/testenv/record_versions.py +83 -0
- migr8-0.1.0/tests/conftest.py +47 -0
- migr8-0.1.0/tests/integration/__init__.py +0 -0
- migr8-0.1.0/tests/integration/conftest.py +327 -0
- migr8-0.1.0/tests/integration/test_commit_failure.py +402 -0
- migr8-0.1.0/tests/integration/test_metadata_damage.py +381 -0
- migr8-0.1.0/tests/integration/test_oracle.py +560 -0
- migr8-0.1.0/tests/integration/test_oracle_concurrency.py +324 -0
- migr8-0.1.0/tests/integration/test_oracle_execution.py +887 -0
- migr8-0.1.0/tests/integration/test_oracle_tls.py +87 -0
- migr8-0.1.0/tests/integration/test_postgres.py +651 -0
- migr8-0.1.0/tests/proxy.py +244 -0
- migr8-0.1.0/tests/support.py +309 -0
- migr8-0.1.0/tests/test_adapter_contract.py +518 -0
- migr8-0.1.0/tests/test_checks.py +84 -0
- migr8-0.1.0/tests/test_cli.py +197 -0
- migr8-0.1.0/tests/test_concurrency_probe.py +240 -0
- migr8-0.1.0/tests/test_diagnostics.py +459 -0
- migr8-0.1.0/tests/test_entry_contract.py +213 -0
- migr8-0.1.0/tests/test_failure_reporting.py +423 -0
- migr8-0.1.0/tests/test_fingerprint.py +122 -0
- migr8-0.1.0/tests/test_loader.py +134 -0
- migr8-0.1.0/tests/test_manifest.py +340 -0
- migr8-0.1.0/tests/test_metadata_damage.py +481 -0
- migr8-0.1.0/tests/test_offline.py +289 -0
- migr8-0.1.0/tests/test_oracle_config.py +134 -0
- migr8-0.1.0/tests/test_outcome_authority.py +576 -0
- migr8-0.1.0/tests/test_sqlite.py +984 -0
- migr8-0.1.0/tests/test_sqlite_faults.py +482 -0
- migr8-0.1.0/tests/test_sqlite_layout.py +396 -0
- migr8-0.1.0/tests/test_sqltext.py +308 -0
- migr8-0.1.0/tests/test_staging.py +242 -0
- migr8-0.1.0/tests/test_statevalidate.py +569 -0
- migr8-0.1.0/tests/test_terminal_result.py +245 -0
- migr8-0.1.0/tests/test_unknown_outcome.py +354 -0
migr8-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
*.egg-info/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
|
|
9
|
+
# Tests
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.mypy_cache/
|
|
12
|
+
.ruff_cache/
|
|
13
|
+
.coverage
|
|
14
|
+
.coverage.*
|
|
15
|
+
htmlcov/
|
|
16
|
+
|
|
17
|
+
# Local test environment secrets and scratch
|
|
18
|
+
testenv/.env
|
|
19
|
+
testenv/secrets/
|
|
20
|
+
.scratch/
|
|
21
|
+
deploy/apple-container/generated/
|
|
22
|
+
|
|
23
|
+
# Generated TLS fixture for the disposable Oracle test database
|
|
24
|
+
testenv/tls/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Commercial licensing
|
|
2
|
+
|
|
3
|
+
migr8 is dual-licensed. The public repository is offered under the GNU Affero
|
|
4
|
+
General Public License v3.0 only ([LICENSE](LICENSE)). If the AGPL's terms do
|
|
5
|
+
not fit your use — for example embedding migr8 in a proprietary product, or
|
|
6
|
+
running a modified version as a network service without offering source — a
|
|
7
|
+
separate commercial license is available from the copyright holders.
|
|
8
|
+
|
|
9
|
+
Contact: mail@bobah.net
|
|
10
|
+
|
|
11
|
+
> This document is an availability notice, not a license grant or a contract.
|
|
12
|
+
> Commercial terms are agreed per customer in a signed agreement drafted with
|
|
13
|
+
> counsel. Until such an agreement is executed, your use of migr8 is governed
|
|
14
|
+
> solely by the AGPL-3.0-only terms in [LICENSE](LICENSE).
|