Created a base to build on

This commit is contained in:
2025-12-22 21:19:31 +01:00
parent a1e33bd403
commit 47a9719eeb
20 changed files with 1590 additions and 0 deletions

27
internal/db/querier.go Normal file
View File

@@ -0,0 +1,27 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"context"
)
type Querier interface {
CreateGame(ctx context.Context, arg CreateGameParams) (Game, error)
CreatePlatform(ctx context.Context, name string) (Platform, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
DeleteGame(ctx context.Context, id int64) error
DeletePlatform(ctx context.Context, id int64) error
DeleteUser(ctx context.Context, id int64) error
GetGame(ctx context.Context, id int64) (Game, error)
GetUser(ctx context.Context, id int64) (User, error)
ListGames(ctx context.Context) ([]Game, error)
ListPlatforms(ctx context.Context) ([]Platform, error)
ListUsers(ctx context.Context) ([]User, error)
UpdateGame(ctx context.Context, arg UpdateGameParams) (Game, error)
UpdatePlatform(ctx context.Context, arg UpdatePlatformParams) (Platform, error)
}
var _ Querier = (*Queries)(nil)