start of shellcore DB
This commit is contained in:
1 parent
4461f52775
commit
244bd918d6
8 files changed
+70
-2
No files matched your search
+15
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user