Add graphify, tests and supabase migrations & config

This commit is contained in:
2026-07-17 22:35:58 +04:00
parent 1069c93e6d
commit a5fd186320
15 changed files with 2399 additions and 6 deletions
+12
View File
@@ -39,6 +39,18 @@ type Clan struct {
UpdatedMs int64
}
// Store defines the persistence operations for clans.
type Store interface {
Exec(ctx context.Context, sql string) (int64, error)
Create(ctx context.Context, c Clan) error
Get(ctx context.Context, id string) (Clan, error)
GetByTag(ctx context.Context, tag string) (Clan, error)
List(ctx context.Context, limit, offset int) ([]Clan, error)
Delete(ctx context.Context, id string) error
Update(ctx context.Context, c Clan) error
Count(ctx context.Context) (int, error)
}
// PgStore is the Postgres-backed half of the package.
type PgStore struct {
pool *pgxpool.Pool