refactor: main

This commit is contained in:
Elijah McMorris 2024-08-27 19:11:23 -07:00
parent b885315cd7
commit bb9967ced6
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
3 changed files with 25 additions and 88 deletions

View file

@ -53,17 +53,17 @@ WIKIDATA_FILE_NAME=data/latest-all.json.bz2
WIKIDATA_DB_PORT=surrealdb:8000
# true=overwrite existing data, false=skip if already exists
OVERWRITE_DB=false
CREATE_MODE=ThreadedSingle
CREATE_VERSION=Bulk
#FILTER_PATH=../filter.surql
```
Env string CREATE_MODE must be in the enum CreateMode
Env string CREATE_VERSION must be in the enum CREATE_VERSION
```rust
pub enum CreateMode {
pub enum CreateVersion {
Single,
ThreadedSingle,
ThreadedBulk,
// must create a filter.surql file in the root directory
#[default]
Bulk,
/// must create a filter.surql file in the root directory
BulkFilter,
}
```