-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseService.cs
More file actions
44 lines (32 loc) · 1.05 KB
/
DatabaseService.cs
File metadata and controls
44 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using Supabase;
using System.Security.Policy;
namespace ElectricReg
{
public class DatabaseService
{
private static string url = "https://csqaiejkcporxddqwans.supabase.co";
private static string key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNzcWFpZWprY3BvcnhkZHF3YW5zIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDUwNDc2OTEsImV4cCI6MjAyMDYyMzY5MX0.zAws4FCnjfEaPJZJ-iNAAX0LlkqZS6F0xVfxvNM9zdU";
private static SupabaseOptions options = new Supabase.SupabaseOptions
{
AutoConnectRealtime = true
};
private Client supabase = new Supabase.Client(url, key, options);
//Init Supabase
public async void initSupabase()
{
await supabase.InitializeAsync();
}
public Client getClient {
get
{
return supabase;
}
}
}
}