Skip to content

[feat] SQLite Support - #12

Merged
ktwrd merged 18 commits into
mainfrom
feature/efcore-sqlite
Aug 20, 2026
Merged

[feat] SQLite Support#12
ktwrd merged 18 commits into
mainfrom
feature/efcore-sqlite

Conversation

@ktwrd

@ktwrd ktwrd commented Aug 14, 2026

Copy link
Copy Markdown
Owner

This PR adds support for SQLite. Existing configuration files do not need to be updated, but they should be to prevent a broken configuration file in the future.
To migrate to the new config file format for the Database element, you can do the following:

diff --git a/config.xml b/config.xml
index 4850922..6de7ade 100644
--- a/config.xml
+++ b/config.xml
@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Kasta>
-    <Database Host="localhost" Port="5432" Name="kasta-dev">
-        <Username>kasta-dev</Username>
-        <Password>kasta</Password>
+    <Database Provider="Postgres">
+        <Postgres Host="localhost" Port="5432" Name="kasta-dev">
+            <Username>kasta-dev</Username>
+            <Password>kasta</Password>
+        </Postgres>
     </Database>

This PR also migrates Kasta from using DateTimeOffset to DateTime (UTC only) in the DB to support SQLite.

By default, Kasta will use SQLite for its database, but it is strongly recommended to use Postgres for non-development or testing purposes.

For docker installations, the database filename will default to /config/kasta.db, but for non-docker installations it'll default to kasta.db in the current working directory.


Resolves #13

@ktwrd ktwrd self-assigned this Aug 14, 2026
@ktwrd ktwrd added the enhancement New feature or request label Aug 14, 2026
@ktwrd ktwrd added this to the 0.11 milestone Aug 14, 2026
@ktwrd
ktwrd marked this pull request as ready for review August 19, 2026 07:40
@ktwrd
ktwrd merged commit bfd1b6c into main Aug 20, 2026
13 checks passed
@ktwrd
ktwrd deleted the feature/efcore-sqlite branch August 20, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] SQLite Support

1 participant