Created a base to build on
This commit is contained in:
27
internal/db/querier.go
Normal file
27
internal/db/querier.go
Normal 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)
|
||||
Reference in New Issue
Block a user