start of shellcore DB

This commit is contained in:
gollyohmolly committed 2026-11-15 13:55:22 +01:00
1 parent 4461f52775
commit 244bd918d6
8 files changed
+70 -2

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
using Npgsql;
public static class database
{
private static NpgsqlDataSource? dataSource;
public static void init()
{
string connectionString =
Environment.GetEnvironmentVariable("SHELLCORE_DB")
?? throw new Exception("SHELLCORE_DB not configured");
dataSource = NpgsqlDataSource.Create(connectionString);
}
}