rename waltree into treedb

WAL was a wrong name. It's not a Write Ahead Log, but a "Write Behind
Log" (new concept haha), so it made no sense to keep wal.
And wbl is not unpronounceable.
This commit is contained in:
ppom 2025-05-25 12:00:00 +02:00
commit 037b3498bc
No known key found for this signature in database
6 changed files with 8 additions and 4 deletions

View file

@ -56,7 +56,7 @@ This code has async code, to handle input streams and communication with clients
- `filter.rs`: Filter managers: handle lines, persistance, store matches and trigger actions. This is the main piece of runtime logic.
- `socket.rs`: The socket task, responsible for communication with clients.
### `src/waltree`
### `src/tree`
Persistence layer.

View file

@ -15,6 +15,10 @@ use tracing::{error, info};
use crate::{
concepts::{Action, Filter, Match, Pattern, Time},
protocol::{Order, PatternStatus},
treedb::{
helpers::{to_match, to_matchtime, to_time, to_u64},
Database, Tree,
},
};
use super::{shutdown::ShutdownToken, KeyspaceExt as _, MatchTime, Tree};

View file

@ -16,4 +16,4 @@ pub mod concepts;
pub mod daemon;
pub mod protocol;
pub mod tests;
pub mod waltree;
pub mod treedb;

View file

@ -372,7 +372,7 @@ mod tests {
use crate::{
concepts::Config,
waltree::{helpers::*, raw::WriteDB, rotate_db, Database, Entry, DB_NAME},
treedb::{helpers::*, raw::WriteDB, rotate_db, Database, Entry, DB_NAME},
};
#[tokio::test]

View file

@ -300,7 +300,7 @@ mod tests {
use tempfile::NamedTempFile;
use tokio::fs::{read, write, File};
use crate::waltree::{
use crate::treedb::{
raw::{DatabaseError, ReadDB, WriteDB, DB_TREE_ID},
Entry,
};