// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.30.0 package db import ( "context" ) type Querier interface { // Location // // insert INTO locations (x,y,z,world, observable) VALUES (?,?,?,?,?) CreateLocation(ctx context.Context, arg CreateLocationParams) (int64, error) // Observable // // insert INTO observables (name, description) VALUES (?,?) CreateObservable(ctx context.Context, arg CreateObservableParams) (int64, error) //DestroyLocation // // delete from locations where id = ? DestroyLocation(ctx context.Context, id int64) error // Exit // // select id, origin, dest from exits where id = ? LIMIT 1 GetExit(ctx context.Context, id int64) (Exit, error) //GetLocation // // select id, x, y, z, world, observable from locations where id = ? LIMIT 1 GetLocation(ctx context.Context, id int64) (Location, error) //GetLocationExitsFrom // // select id, origin, dest from exits where dest = ? GetLocationExitsFrom(ctx context.Context, dest int64) ([]Exit, error) //GetLocationExitsTo // // select id, origin, dest from exits where origin = ? GetLocationExitsTo(ctx context.Context, origin int64) ([]Exit, error) //GetObservable // // select id, name, description from observables where id = ? LIMIT 1 GetObservable(ctx context.Context, id int64) (Observable, error) //UpdateLocation // // update locations SET // x = ?, // y = ?, // z = ?, // world = ?, // observable = ? // where id = ? UpdateLocation(ctx context.Context, arg UpdateLocationParams) error } var _ Querier = (*Queries)(nil)