You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A relative SQLite path in database.ConnectionString (e.g. sqlite://app.db) is now resolved against SquidStd's RootDirectory (via DirectoriesConfig.Root), consistent with how the log directory already behaves — instead of resolving verbatim against the process CWD. The DB file's folder is created if missing.
Absolute paths, :memory:, and server providers (postgres/mysql/mssql) are unchanged. The parser stays verbatim when called without a base directory (back-compat).
Changes
ParsedConnection: new SqliteFilePath (resolved on-disk path; null for :memory:/server).
ConnectionStringParser.Parse(cs, sqliteBaseDirectory?): resolves relative SQLite paths against the base.
DatabaseService: injects DirectoriesConfig, passes Root, ensures the DB folder exists.
Test Plan
Parser: relative+base resolves; absolute/:memory:/no-base/server unchanged (5 new tests)
DatabaseService: relative sqlite://sub/app.db creates <root>/sub on StartAsync
Full suite: 985/985 green; build 0 errors, 0 new warnings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A relative SQLite path in
database.ConnectionString(e.g.sqlite://app.db) is now resolved against SquidStd'sRootDirectory(viaDirectoriesConfig.Root), consistent with how the log directory already behaves — instead of resolving verbatim against the process CWD. The DB file's folder is created if missing.Absolute paths,
:memory:, and server providers (postgres/mysql/mssql) are unchanged. The parser stays verbatim when called without a base directory (back-compat).Changes
ParsedConnection: newSqliteFilePath(resolved on-disk path; null for:memory:/server).ConnectionStringParser.Parse(cs, sqliteBaseDirectory?): resolves relative SQLite paths against the base.DatabaseService: injectsDirectoriesConfig, passesRoot, ensures the DB folder exists.Test Plan
:memory:/no-base/server unchanged (5 new tests)sqlite://sub/app.dbcreates<root>/subon StartAsync