element-hq / element-hq/dendrite

SQLite base path

Open
#2,349 0 comments 0 reactions 0 assignees View on GitHub
C-Config C-SQLite T-Other X-Fix-With-Monolith
Dominant language
Go
Stars
965
Forks
101
PR merge metrics
No merged PRs in 30d

Description

*This issue was originally created by [**@tombh**](https://github.com/tombh) at .*

The base path for SQlite is currently just the present working directory. This was a problem for me as I assumed both the main Dendrite process and `create-account` would connect to the same DB no matter where I ran the commands.

I believe the common expectation is that if both the main process and `create-account` are using the same config path argument then both processes should act on the same data.

I notice there is also a logs path that defaults to the present working directory. Would it makes sense to have a `base_path:` setting in `config.yaml`?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the main Dendrite process and `create-account` resolve the config path, SQLite base path, and logs path. Check whether both entry points can derive data paths from the same configuration, then verify that using the same config path makes them operate on the same database regardless of the working directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sqlite
Domain
backend, cli, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.