garage/src/db
Zdenek Crha 4b54e053df convert_db: prevent conversion between same input/output engine
Use optional DB open overrides for both input and output database.

Duplicating the same override flag for input/output would result in too
many, too long flags. It would be too costly for very rare edge-case
where converting between same DB engine, just with different flags.

Because overrides flags for different engines are disjoint and we are
preventing conversion between same input/ouput DB engine, we can have
only one set.

The override flag will be passed either to input or output, based on
engine type it belongs to. It will never be passed to both of them and
cause unwelcome surprise to user.
2024-01-18 17:57:56 +01:00
..
Cargo.toml Bump version to 0.9.1 2024-01-16 16:28:17 +01:00
counted_tree_hack.rs garage_db: refactor transactions and add on_commit mechanism 2023-09-21 15:35:31 +02:00
lib.rs convert_db: prevent conversion between same input/output engine 2024-01-18 17:57:56 +01:00
lmdb_adapter.rs garage_db: refactor transactions and add on_commit mechanism 2023-09-21 15:35:31 +02:00
sled_adapter.rs garage_db: refactor transactions and add on_commit mechanism 2023-09-21 15:35:31 +02:00
sqlite_adapter.rs garage_db: refactor transactions and add on_commit mechanism 2023-09-21 15:35:31 +02:00
test.rs garage_db: refactor transactions and add on_commit mechanism 2023-09-21 15:35:31 +02:00