Skip to content

release: SQLite path resolution against RootDirectory#27

Merged
tgiachi merged 3 commits into
mainfrom
develop
Jul 2, 2026
Merged

release: SQLite path resolution against RootDirectory#27
tgiachi merged 3 commits into
mainfrom
develop

Conversation

@tgiachi

@tgiachi tgiachi commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Release

Promotes develop to main to trigger semantic-release + NuGet publish.

Included

  • feat(database): relative SQLite paths in database.ConnectionString resolve against RootDirectory (via DirectoriesConfig), with the DB folder auto-created. Absolute paths, :memory:, and server providers unchanged.

Full suite green (985 tests), build 0 errors / 0 new warnings.


if (!Path.IsPathRooted(remainder) && !string.IsNullOrWhiteSpace(baseDirectory))
{
return Path.GetFullPath(Path.Combine(baseDirectory, remainder));
[Fact]
public void Parse_SqliteRelativePath_WithBaseDirectory_ResolvesAgainstBase()
{
var baseDir = Path.Combine(Path.GetTempPath(), "squidstd-base");
var baseDir = Path.Combine(Path.GetTempPath(), "squidstd-base");
var result = ConnectionStringParser.Parse("sqlite://app.db", baseDir);

var expected = Path.GetFullPath(Path.Combine(baseDir, "app.db"));
[Fact]
public async Task StartAsync_RelativeSqlitePathWithSubdirectory_CreatesDirectoryUnderRoot()
{
var root = Path.Combine(Path.GetTempPath(), "squidstd-root-" + Guid.NewGuid().ToString("N"));
{
await service.StartAsync();

Assert.True(Directory.Exists(Path.Combine(root, "sub")));
@tgiachi
tgiachi merged commit 05834c1 into main Jul 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants