···251251 |> pog.execute(db)
252252}
253253254254+/// A row you get from running the `get_citizen` query
255255+/// defined in `./src/db/sql/get_citizen.sql`.
256256+///
257257+/// > 🐿️ This type definition was generated automatically using v4.6.0 of the
258258+/// > [squirrel package](https://github.com/giacomocavalieri/squirrel).
259259+///
260260+pub type GetCitizenRow {
261261+ GetCitizenRow(
262262+ species_id: String,
263263+ name: String,
264264+ home_tile_id: Option(Int),
265265+ id: Int,
266266+ )
267267+}
268268+269269+/// Runs the `get_citizen` query
270270+/// defined in `./src/db/sql/get_citizen.sql`.
271271+///
272272+/// > 🐿️ This function was generated automatically using v4.6.0 of
273273+/// > the [squirrel package](https://github.com/giacomocavalieri/squirrel).
274274+///
275275+pub fn get_citizen(
276276+ db: pog.Connection,
277277+ arg_1: Int,
278278+) -> Result(pog.Returned(GetCitizenRow), pog.QueryError) {
279279+ let decoder = {
280280+ use species_id <- decode.field(0, decode.string)
281281+ use name <- decode.field(1, decode.string)
282282+ use home_tile_id <- decode.field(2, decode.optional(decode.int))
283283+ use id <- decode.field(3, decode.int)
284284+ decode.success(GetCitizenRow(species_id:, name:, home_tile_id:, id:))
285285+ }
286286+287287+ "SELECT * FROM citizens WHERE id = $1;
288288+"
289289+ |> pog.query
290290+ |> pog.parameter(pog.int(arg_1))
291291+ |> pog.returning(decoder)
292292+ |> pog.execute(db)
293293+}
294294+254295/// A row you get from running the `get_field_and_tiles_by_id` query
255296/// defined in `./src/db/sql/get_field_and_tiles_by_id.sql`.
256297///
···499540"
500541 |> pog.query
501542 |> pog.parameter(pog.text(arg_1))
543543+ |> pog.returning(decoder)
544544+ |> pog.execute(db)
545545+}
546546+547547+/// A row you get from running the `get_tile` query
548548+/// defined in `./src/db/sql/get_tile.sql`.
549549+///
550550+/// > 🐿️ This type definition was generated automatically using v4.6.0 of the
551551+/// > [squirrel package](https://github.com/giacomocavalieri/squirrel).
552552+///
553553+pub type GetTileRow {
554554+ GetTileRow(id: Int, tile_type_id: String, name: String)
555555+}
556556+557557+/// Runs the `get_tile` query
558558+/// defined in `./src/db/sql/get_tile.sql`.
559559+///
560560+/// > 🐿️ This function was generated automatically using v4.6.0 of
561561+/// > the [squirrel package](https://github.com/giacomocavalieri/squirrel).
562562+///
563563+pub fn get_tile(
564564+ db: pog.Connection,
565565+ arg_1: Int,
566566+) -> Result(pog.Returned(GetTileRow), pog.QueryError) {
567567+ let decoder = {
568568+ use id <- decode.field(0, decode.int)
569569+ use tile_type_id <- decode.field(1, decode.string)
570570+ use name <- decode.field(2, decode.string)
571571+ decode.success(GetTileRow(id:, tile_type_id:, name:))
572572+ }
573573+574574+ "SELECT * FROM tiles WHERE id = $1;
575575+"
576576+ |> pog.query
577577+ |> pog.parameter(pog.int(arg_1))
502578 |> pog.returning(decoder)
503579 |> pog.execute(db)
504580}