From 1c3d5f9be11bc04bbf38d22f6af7991cfa5162c8 Mon Sep 17 00:00:00 2001 From: Nathan Lilienthal Date: Sun, 22 Sep 2024 00:10:32 -0400 Subject: [PATCH] Throwing shit against a wall here --- .github/workflows/ci.yml | 2 +- ...a9de5cec67f3f6b9f6b277143a465f4b5f3a6.json | 448 ++++++++++++++++++ ...17f09a839a9f468c591a03356cee2175a30b5.json | 265 +++++++++++ ...57791b2d5747a41377c65539a7390a80d1282.json | 28 ++ ...121427791ceb4b51ce5eccf9d047e7421a67c.json | 40 ++ ...4fce6a28db307735f9133064c41c7f3a7bbd2.json | 191 ++++++++ ...d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f.json | 28 ++ ...417f67a16b43b512851a9def4048e4b72faab.json | 178 +++++++ ...89f7461af30fc5c1ced0883b75aa0d7968d9c.json | 15 + ...86684e1952a6cc992be3c39d572eb5373c622.json | 191 ++++++++ ...4b4c7a15b49e662191a73c53632051c73486a.json | 41 ++ ...7b00b6287d44d8b55231a4de4f6bcdd153953.json | 28 ++ ...3adce36781f78219ebdbfc326723896f9d67b.json | 121 +++++ ...1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48.json | 184 +++++++ ...b95d50031989d55bb5b5d4f2b2d1db2821481.json | 85 ++++ ...8706d3a65ac198f0f62307ffa16877e6a6455.json | 179 +++++++ ...59c605731204a111a09f1fba28b2cce456618.json | 179 +++++++ ...f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4.json | 133 ++++++ ...41936b865c175e6d6a9e6883063d301ce2c66.json | 190 ++++++++ ...5e19504e30b8c46846a0d0cc6f6efc269014b.json | 190 ++++++++ ...73d16d9d1edb435bf0a0d13997e2a4501abcd.json | 14 + ...fd303d972e464dd58623349fa4c11a3315893.json | 197 ++++++++ ...b435f51c3cca0e65f19232a8b55ba5b5efe83.json | 181 +++++++ ...0cde26017b56fb5248882383e90e831042503.json | 266 +++++++++++ ...444f778f2df95df1400bc90191daf86a30265.json | 218 +++++++++ ...7dd6b24a23189741145132f6388775fa3b869.json | 28 ++ ...e6ace96bbeecb8fd0008b356f77c94245a60b.json | 129 +++++ ...511de366ade3fba82ac3df0113c6a87f97c4c.json | 153 ++++++ ...8684140f245451d7e5c7b06006f3744733e24.json | 178 +++++++ ...84ba3b67c220136d26c745bfab234ca4b7aad.json | 120 +++++ ...f40349f7839336b06ff2bc20b387616e126c3.json | 43 ++ ...c30e9b5dc885dee7bb335c6f5e5b2fe307f9e.json | 156 ++++++ ...17ba36c00b46daa8c97c202e5099ec6173224.json | 42 ++ ...45fc02d6b788619bec328eb1e28c57715f6dd.json | 178 +++++++ ...19cf78255243819afe222e16c0c0075189b52.json | 155 ++++++ ...817624f5368a7065ea2cb068c922d5f7349f8.json | 178 +++++++ ...67728d2227bcc94113ccb9ce64540eb47db67.json | 191 ++++++++ ...96f6e46f8f824984bbcbcae16c212cd35f575.json | 41 ++ sqlx-data.json | 3 + 39 files changed, 5186 insertions(+), 1 deletion(-) create mode 100644 .sqlx/query-006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6.json create mode 100644 .sqlx/query-0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5.json create mode 100644 .sqlx/query-13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282.json create mode 100644 .sqlx/query-2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c.json create mode 100644 .sqlx/query-31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2.json create mode 100644 .sqlx/query-334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f.json create mode 100644 .sqlx/query-424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab.json create mode 100644 .sqlx/query-4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c.json create mode 100644 .sqlx/query-4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622.json create mode 100644 .sqlx/query-4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a.json create mode 100644 .sqlx/query-58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953.json create mode 100644 .sqlx/query-59f54ff44a45db6be47ef31657b3adce36781f78219ebdbfc326723896f9d67b.json create mode 100644 .sqlx/query-74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48.json create mode 100644 .sqlx/query-7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481.json create mode 100644 .sqlx/query-7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455.json create mode 100644 .sqlx/query-7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618.json create mode 100644 .sqlx/query-8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4.json create mode 100644 .sqlx/query-8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66.json create mode 100644 .sqlx/query-9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b.json create mode 100644 .sqlx/query-a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd.json create mode 100644 .sqlx/query-a4d4f43ae6dd8989d5e84559cf8fd303d972e464dd58623349fa4c11a3315893.json create mode 100644 .sqlx/query-acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83.json create mode 100644 .sqlx/query-b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503.json create mode 100644 .sqlx/query-b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265.json create mode 100644 .sqlx/query-ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869.json create mode 100644 .sqlx/query-ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b.json create mode 100644 .sqlx/query-c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c.json create mode 100644 .sqlx/query-c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24.json create mode 100644 .sqlx/query-d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad.json create mode 100644 .sqlx/query-dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3.json create mode 100644 .sqlx/query-df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e.json create mode 100644 .sqlx/query-e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224.json create mode 100644 .sqlx/query-eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd.json create mode 100644 .sqlx/query-edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52.json create mode 100644 .sqlx/query-ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8.json create mode 100644 .sqlx/query-f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67.json create mode 100644 .sqlx/query-fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575.json create mode 100644 sqlx-data.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce17fc0..a2247d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,4 +31,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --all --exclude starmap + args: --all diff --git a/.sqlx/query-006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6.json b/.sqlx/query-006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6.json new file mode 100644 index 0000000..7685103 --- /dev/null +++ b/.sqlx/query-006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6.json @@ -0,0 +1,448 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO stations (\n system_address,\n name,\n ty,\n dist_from_star_ls,\n market_id,\n landing_pads,\n faction,\n government,\n allegiance,\n services,\n economies,\n updated_at,\n updated_by)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n ON CONFLICT (system_address, name)\n DO UPDATE SET\n ty = $3,\n dist_from_star_ls = $4,\n market_id = $5,\n landing_pads = $6,\n faction = $7,\n government = $8,\n allegiance = $9,\n services = $10,\n economies = $11,\n updated_at = $12,\n updated_by = $13\n RETURNING\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "ty: StationType", + "type_info": { + "Custom": { + "name": "stationtype", + "kind": { + "Enum": [ + "AsteroidBase", + "Coriolis", + "CraterOutpost", + "CraterPort", + "FleetCarrier", + "MegaShip", + "Ocellus", + "Orbis", + "Outpost" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "dist_from_star_ls", + "type_info": "Float8" + }, + { + "ordinal": 4, + "name": "market_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "landing_pads: LandingPads", + "type_info": { + "Custom": { + "name": "landingpads", + "kind": { + "Composite": [ + [ + "large", + "Int2" + ], + [ + "medium", + "Int2" + ], + [ + "small", + "Int2" + ] + ] + } + } + } + }, + { + "ordinal": 6, + "name": "faction", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "services: Vec", + "type_info": { + "Custom": { + "name": "service[]", + "kind": { + "Array": { + "Custom": { + "name": "service", + "kind": { + "Enum": [ + "Autodock", + "Blackmarket", + "CarrierFuel", + "CarrierManagement", + "Commodities", + "Contacts", + "CrewLounge", + "Dock", + "Engineer", + "Exploration", + "Facilitator", + "FlightController", + "Initiatives", + "MaterialTrader", + "Missions", + "MissionsGenerated", + "Modulepacks", + "Outfitting", + "Powerplay", + "Rearm", + "Refuel", + "Repair", + "SearchRescue", + "Shipyard", + "Shop", + "StationMenu", + "StationOperations", + "TechBroker", + "Tuning", + "VoucherRedemption", + "Livery", + "SocialSpace", + "Bartender", + "VistaGenomics", + "PioneerSupplies", + "ApexInterstellar", + "FrontlineSolutions" + ] + } + } + } + } + } + } + }, + { + "ordinal": 10, + "name": "economies: Vec", + "type_info": { + "Custom": { + "name": "economyshare[]", + "kind": { + "Array": { + "Custom": { + "name": "economyshare", + "kind": { + "Composite": [ + [ + "name", + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + ], + [ + "proportion", + "Float8" + ] + ] + } + } + } + } + } + } + }, + { + "ordinal": 11, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 12, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int8", + "Varchar", + { + "Custom": { + "name": "stationtype", + "kind": { + "Enum": [ + "AsteroidBase", + "Coriolis", + "CraterOutpost", + "CraterPort", + "FleetCarrier", + "MegaShip", + "Ocellus", + "Orbis", + "Outpost" + ] + } + } + }, + "Float8", + "Int8", + { + "Custom": { + "name": "landingpads", + "kind": { + "Composite": [ + [ + "large", + "Int2" + ], + [ + "medium", + "Int2" + ], + [ + "small", + "Int2" + ] + ] + } + } + }, + "Varchar", + { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + }, + { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + }, + { + "Custom": { + "name": "service[]", + "kind": { + "Array": { + "Custom": { + "name": "service", + "kind": { + "Enum": [ + "Autodock", + "Blackmarket", + "CarrierFuel", + "CarrierManagement", + "Commodities", + "Contacts", + "CrewLounge", + "Dock", + "Engineer", + "Exploration", + "Facilitator", + "FlightController", + "Initiatives", + "MaterialTrader", + "Missions", + "MissionsGenerated", + "Modulepacks", + "Outfitting", + "Powerplay", + "Rearm", + "Refuel", + "Repair", + "SearchRescue", + "Shipyard", + "Shop", + "StationMenu", + "StationOperations", + "TechBroker", + "Tuning", + "VoucherRedemption", + "Livery", + "SocialSpace", + "Bartender", + "VistaGenomics", + "PioneerSupplies", + "ApexInterstellar", + "FrontlineSolutions" + ] + } + } + } + } + } + }, + { + "Custom": { + "name": "economyshare[]", + "kind": { + "Array": { + "Custom": { + "name": "economyshare", + "kind": { + "Composite": [ + [ + "name", + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + ], + [ + "proportion", + "Float8" + ] + ] + } + } + } + } + } + }, + "Timestamp", + "Varchar" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6" +} diff --git a/.sqlx/query-0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5.json b/.sqlx/query-0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5.json new file mode 100644 index 0000000..0fa4a3d --- /dev/null +++ b/.sqlx/query-0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5.json @@ -0,0 +1,265 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n FROM stations\n WHERE system_address = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "ty: StationType", + "type_info": { + "Custom": { + "name": "stationtype", + "kind": { + "Enum": [ + "AsteroidBase", + "Coriolis", + "CraterOutpost", + "CraterPort", + "FleetCarrier", + "MegaShip", + "Ocellus", + "Orbis", + "Outpost" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "dist_from_star_ls", + "type_info": "Float8" + }, + { + "ordinal": 4, + "name": "market_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "landing_pads: LandingPads", + "type_info": { + "Custom": { + "name": "landingpads", + "kind": { + "Composite": [ + [ + "large", + "Int2" + ], + [ + "medium", + "Int2" + ], + [ + "small", + "Int2" + ] + ] + } + } + } + }, + { + "ordinal": 6, + "name": "faction", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "services: Vec", + "type_info": { + "Custom": { + "name": "service[]", + "kind": { + "Array": { + "Custom": { + "name": "service", + "kind": { + "Enum": [ + "Autodock", + "Blackmarket", + "CarrierFuel", + "CarrierManagement", + "Commodities", + "Contacts", + "CrewLounge", + "Dock", + "Engineer", + "Exploration", + "Facilitator", + "FlightController", + "Initiatives", + "MaterialTrader", + "Missions", + "MissionsGenerated", + "Modulepacks", + "Outfitting", + "Powerplay", + "Rearm", + "Refuel", + "Repair", + "SearchRescue", + "Shipyard", + "Shop", + "StationMenu", + "StationOperations", + "TechBroker", + "Tuning", + "VoucherRedemption", + "Livery", + "SocialSpace", + "Bartender", + "VistaGenomics", + "PioneerSupplies", + "ApexInterstellar", + "FrontlineSolutions" + ] + } + } + } + } + } + } + }, + { + "ordinal": 10, + "name": "economies: Vec", + "type_info": { + "Custom": { + "name": "economyshare[]", + "kind": { + "Array": { + "Custom": { + "name": "economyshare", + "kind": { + "Composite": [ + [ + "name", + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + ], + [ + "proportion", + "Float8" + ] + ] + } + } + } + } + } + } + }, + { + "ordinal": 11, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 12, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5" +} diff --git a/.sqlx/query-13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282.json b/.sqlx/query-13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282.json new file mode 100644 index 0000000..6e51692 --- /dev/null +++ b/.sqlx/query-13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM factions\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282" +} diff --git a/.sqlx/query-2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c.json b/.sqlx/query-2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c.json new file mode 100644 index 0000000..a6edc66 --- /dev/null +++ b/.sqlx/query-2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM articles\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "date", + "type_info": "Date" + }, + { + "ordinal": 3, + "name": "body", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + true, + false, + false + ] + }, + "hash": "2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c" +} diff --git a/.sqlx/query-31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2.json b/.sqlx/query-31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2.json new file mode 100644 index 0000000..fbb1973 --- /dev/null +++ b/.sqlx/query-31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2.json @@ -0,0 +1,191 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1 AND lower(name) ILIKE $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "planet_class", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "tidal_lock", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "landable", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "terraform_state", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "atmosphere", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "atmosphere_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "volcanism", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "mass", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "surface_gravity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "surface_pressure", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 25, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 26, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 27, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 28, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2" +} diff --git a/.sqlx/query-334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f.json b/.sqlx/query-334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f.json new file mode 100644 index 0000000..7668508 --- /dev/null +++ b/.sqlx/query-334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM factions\n WHERE lower(name) = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f" +} diff --git a/.sqlx/query-424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab.json b/.sqlx/query-424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab.json new file mode 100644 index 0000000..b0a0e6e --- /dev/null +++ b/.sqlx/query-424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab.json @@ -0,0 +1,178 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE address = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab" +} diff --git a/.sqlx/query-4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c.json b/.sqlx/query-4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c.json new file mode 100644 index 0000000..ea8dee4 --- /dev/null +++ b/.sqlx/query-4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM system_faction_states\n WHERE system_address = $1 AND faction_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c" +} diff --git a/.sqlx/query-4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622.json b/.sqlx/query-4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622.json new file mode 100644 index 0000000..e9c5a66 --- /dev/null +++ b/.sqlx/query-4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622.json @@ -0,0 +1,191 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO system_factions\n (system_address,\n faction_id,\n state,\n influence,\n happiness,\n government,\n allegiance,\n updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (system_address, faction_id)\n DO UPDATE SET\n state = $3,\n influence = $4,\n happiness = $5,\n government = $6,\n allegiance = $7,\n updated_at = $8\n WHERE system_factions.updated_at < $8\n RETURNING\n system_address,\n faction_id,\n state AS \"state: JournalState\",\n influence,\n happiness \"happiness: Happiness\",\n updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "faction_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "state: JournalState", + "type_info": { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "influence", + "type_info": "Float4" + }, + { + "ordinal": 4, + "name": "happiness: Happiness", + "type_info": { + "Custom": { + "name": "happiness", + "kind": { + "Enum": [ + "Elated", + "Happy", + "Discontented", + "Unhappy", + "Despondent" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int4", + { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + }, + "Float4", + { + "Custom": { + "name": "happiness", + "kind": { + "Enum": [ + "Elated", + "Happy", + "Discontented", + "Unhappy", + "Despondent" + ] + } + } + }, + { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + }, + { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + }, + "Timestamp" + ] + }, + "nullable": [ + false, + false, + true, + false, + true, + false + ] + }, + "hash": "4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622" +} diff --git a/.sqlx/query-4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a.json b/.sqlx/query-4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a.json new file mode 100644 index 0000000..472d2cf --- /dev/null +++ b/.sqlx/query-4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM articles\n WHERE date BETWEEN $1 AND $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "date", + "type_info": "Date" + }, + { + "ordinal": 3, + "name": "body", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Date", + "Date" + ] + }, + "nullable": [ + false, + true, + false, + false + ] + }, + "hash": "4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a" +} diff --git a/.sqlx/query-58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953.json b/.sqlx/query-58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953.json new file mode 100644 index 0000000..1981919 --- /dev/null +++ b/.sqlx/query-58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM factions\n WHERE name ILIKE $1\n ORDER BY name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953" +} diff --git a/.sqlx/query-59f54ff44a45db6be47ef31657b3adce36781f78219ebdbfc326723896f9d67b.json b/.sqlx/query-59f54ff44a45db6be47ef31657b3adce36781f78219ebdbfc326723896f9d67b.json new file mode 100644 index 0000000..eb7ee48 --- /dev/null +++ b/.sqlx/query-59f54ff44a45db6be47ef31657b3adce36781f78219ebdbfc326723896f9d67b.json @@ -0,0 +1,121 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO systems\n (address,\n name,\n primary_star_class,\n position,\n population,\n security,\n government,\n allegiance,\n primary_economy,\n secondary_economy,\n updated_at,\n updated_by)\n VALUES ($1, UPPER($2), $3, $4::geometry, $5, $6,\n $7, $8, $9, $10, $11, $12)\n ON CONFLICT (address)\n DO UPDATE SET\n primary_star_class = $3,\n population = $5,\n security = $6,\n government = $7,\n allegiance = $8,\n primary_economy = $9,\n secondary_economy = $10,\n updated_at = $11,\n updated_by = $12\n WHERE systems.updated_at < $11\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text", + "Varchar", + { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + }, + "Int8", + { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + }, + { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + }, + { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + }, + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + }, + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + }, + "Timestamp", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "59f54ff44a45db6be47ef31657b3adce36781f78219ebdbfc326723896f9d67b" +} diff --git a/.sqlx/query-74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48.json b/.sqlx/query-74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48.json new file mode 100644 index 0000000..260a64b --- /dev/null +++ b/.sqlx/query-74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48.json @@ -0,0 +1,184 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE ST_3DDWithin(position, $1, $2);\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + }, + "Float8" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48" +} diff --git a/.sqlx/query-7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481.json b/.sqlx/query-7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481.json new file mode 100644 index 0000000..7218083 --- /dev/null +++ b/.sqlx/query-7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481.json @@ -0,0 +1,85 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO listings (\n market_id,\n name,\n mean_price,\n buy_price,\n sell_price,\n demand,\n demand_bracket,\n stock,\n stock_bracket,\n listed_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)\n ON CONFLICT (market_id, name)\n DO UPDATE SET\n mean_price = $3,\n buy_price = $4,\n sell_price = $5,\n demand = $6,\n demand_bracket = $7,\n stock = $8,\n stock_bracket = $9,\n listed_at = $10\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "market_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "mean_price", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "buy_price", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "sell_price", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "demand", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "demand_bracket", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "stock", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "stock_bracket", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "listed_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text", + "Int4", + "Int4", + "Int4", + "Int4", + "Int4", + "Int4", + "Int4", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481" +} diff --git a/.sqlx/query-7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455.json b/.sqlx/query-7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455.json new file mode 100644 index 0000000..0f4f836 --- /dev/null +++ b/.sqlx/query-7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455.json @@ -0,0 +1,179 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n s1.address,\n s1.name,\n s1.position AS \"position!: Option>\",\n s1.population,\n s1.security as \"security: Security\",\n s1.government as \"government: Government\",\n s1.allegiance as \"allegiance: Allegiance\",\n s1.primary_economy as \"primary_economy: Economy\",\n s1.secondary_economy as \"secondary_economy: Economy\",\n s1.updated_at,\n s1.updated_by\n FROM systems s1\n FULL JOIN systems s2 ON ST_3DDWithin(s1.position, s2.position, $2)\n WHERE s2.name = $1\n ORDER BY ST_3DDistance(s1.position, s2.position)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text", + "Float8" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455" +} diff --git a/.sqlx/query-7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618.json b/.sqlx/query-7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618.json new file mode 100644 index 0000000..f316161 --- /dev/null +++ b/.sqlx/query-7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618.json @@ -0,0 +1,179 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n s1.address,\n s1.name,\n s1.position AS \"position!: Option>\",\n s1.population,\n s1.security as \"security: Security\",\n s1.government as \"government: Government\",\n s1.allegiance as \"allegiance: Allegiance\",\n s1.primary_economy as \"primary_economy: Economy\",\n s1.secondary_economy as \"secondary_economy: Economy\",\n s1.updated_at,\n s1.updated_by\n FROM systems s1\n FULL JOIN systems s2 ON ST_3DDWithin(s1.position, s2.position, $2)\n WHERE s2.name ILIKE $1\n ORDER BY ST_3DDistance(s1.position, s2.position)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text", + "Float8" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618" +} diff --git a/.sqlx/query-8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4.json b/.sqlx/query-8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4.json new file mode 100644 index 0000000..fa0937d --- /dev/null +++ b/.sqlx/query-8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4.json @@ -0,0 +1,133 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO system_faction_states\n (system_address,\n faction_id,\n state,\n status)\n VALUES ($1, $2, $3, $4)\n RETURNING\n system_address,\n faction_id,\n state AS \"state: JournalState\",\n status AS \"status: Status\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "faction_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "state: JournalState", + "type_info": { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "status: Status", + "type_info": { + "Custom": { + "name": "status", + "kind": { + "Enum": [ + "Active", + "Pending", + "Recovering" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Int8", + "Int4", + { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + }, + { + "Custom": { + "name": "status", + "kind": { + "Enum": [ + "Active", + "Pending", + "Recovering" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4" +} diff --git a/.sqlx/query-8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66.json b/.sqlx/query-8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66.json new file mode 100644 index 0000000..8479683 --- /dev/null +++ b/.sqlx/query-8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66.json @@ -0,0 +1,190 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM bodies\n WHERE name ILIKE $1\n ORDER BY name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "planet_class", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "tidal_lock", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "landable", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "terraform_state", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "atmosphere", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "atmosphere_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "volcanism", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "mass", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "surface_gravity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "surface_pressure", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 25, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 26, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 27, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 28, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66" +} diff --git a/.sqlx/query-9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b.json b/.sqlx/query-9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b.json new file mode 100644 index 0000000..9972738 --- /dev/null +++ b/.sqlx/query-9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b.json @@ -0,0 +1,190 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "planet_class", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "tidal_lock", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "landable", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "terraform_state", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "atmosphere", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "atmosphere_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "volcanism", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "mass", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "surface_gravity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "surface_pressure", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 25, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 26, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 27, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 28, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b" +} diff --git a/.sqlx/query-a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd.json b/.sqlx/query-a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd.json new file mode 100644 index 0000000..0b5181c --- /dev/null +++ b/.sqlx/query-a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM articles\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd" +} diff --git a/.sqlx/query-a4d4f43ae6dd8989d5e84559cf8fd303d972e464dd58623349fa4c11a3315893.json b/.sqlx/query-a4d4f43ae6dd8989d5e84559cf8fd303d972e464dd58623349fa4c11a3315893.json new file mode 100644 index 0000000..9bc8ca9 --- /dev/null +++ b/.sqlx/query-a4d4f43ae6dd8989d5e84559cf8fd303d972e464dd58623349fa4c11a3315893.json @@ -0,0 +1,197 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO stars (\n system_address,\n id,\n name,\n parent_id,\n updated_at,\n updated_by,\n\n absolute_magnitude,\n age_my,\n distance_from_arrival_ls,\n luminosity,\n star_class,\n stellar_mass,\n subclass,\n\n ascending_node,\n axial_tilt,\n eccentricity,\n mean_anomaly,\n orbital_inclination,\n orbital_period,\n periapsis,\n radius,\n rotation_period,\n semi_major_axis,\n surface_temperature,\n\n was_mapped,\n was_discovered)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17,\n $18, $19, $20, $21, $22, $23, $24, $25, $26)\n ON CONFLICT (system_address, id)\n DO UPDATE SET\n name = $3,\n parent_id = $4,\n updated_at = $5,\n updated_by = $6,\n\n absolute_magnitude = $7,\n age_my = $8,\n distance_from_arrival_ls = $9,\n luminosity = $10,\n star_class = $11,\n stellar_mass = $12,\n subclass = $13,\n\n ascending_node = $14,\n axial_tilt = $15,\n eccentricity = $16,\n mean_anomaly = $17,\n orbital_inclination = $18,\n orbital_period = $19,\n periapsis = $20,\n radius = $21,\n rotation_period = $22,\n semi_major_axis = $23,\n surface_temperature = $24,\n\n was_mapped = $25,\n was_discovered = $26\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "absolute_magnitude", + "type_info": "Float4" + }, + { + "ordinal": 7, + "name": "age_my", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "distance_from_arrival_ls", + "type_info": "Float4" + }, + { + "ordinal": 9, + "name": "luminosity", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "star_class", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "stellar_mass", + "type_info": "Float4" + }, + { + "ordinal": 12, + "name": "subclass", + "type_info": "Int2" + }, + { + "ordinal": 13, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 25, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int2", + "Varchar", + "Int2", + "Timestamp", + "Varchar", + "Float4", + "Int4", + "Float4", + "Varchar", + "Varchar", + "Float4", + "Int2", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Bool", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "a4d4f43ae6dd8989d5e84559cf8fd303d972e464dd58623349fa4c11a3315893" +} diff --git a/.sqlx/query-acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83.json b/.sqlx/query-acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83.json new file mode 100644 index 0000000..968ac3f --- /dev/null +++ b/.sqlx/query-acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83.json @@ -0,0 +1,181 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE ST_3DDWithin(ST_MakePoint($2, $3, $4), position, $1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Float8", + "Float8", + "Float8", + "Float8" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83" +} diff --git a/.sqlx/query-b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503.json b/.sqlx/query-b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503.json new file mode 100644 index 0000000..37c0a30 --- /dev/null +++ b/.sqlx/query-b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503.json @@ -0,0 +1,266 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n FROM stations\n WHERE system_address = $1 AND name = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "ty: StationType", + "type_info": { + "Custom": { + "name": "stationtype", + "kind": { + "Enum": [ + "AsteroidBase", + "Coriolis", + "CraterOutpost", + "CraterPort", + "FleetCarrier", + "MegaShip", + "Ocellus", + "Orbis", + "Outpost" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "dist_from_star_ls", + "type_info": "Float8" + }, + { + "ordinal": 4, + "name": "market_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "landing_pads: LandingPads", + "type_info": { + "Custom": { + "name": "landingpads", + "kind": { + "Composite": [ + [ + "large", + "Int2" + ], + [ + "medium", + "Int2" + ], + [ + "small", + "Int2" + ] + ] + } + } + } + }, + { + "ordinal": 6, + "name": "faction", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "services: Vec", + "type_info": { + "Custom": { + "name": "service[]", + "kind": { + "Array": { + "Custom": { + "name": "service", + "kind": { + "Enum": [ + "Autodock", + "Blackmarket", + "CarrierFuel", + "CarrierManagement", + "Commodities", + "Contacts", + "CrewLounge", + "Dock", + "Engineer", + "Exploration", + "Facilitator", + "FlightController", + "Initiatives", + "MaterialTrader", + "Missions", + "MissionsGenerated", + "Modulepacks", + "Outfitting", + "Powerplay", + "Rearm", + "Refuel", + "Repair", + "SearchRescue", + "Shipyard", + "Shop", + "StationMenu", + "StationOperations", + "TechBroker", + "Tuning", + "VoucherRedemption", + "Livery", + "SocialSpace", + "Bartender", + "VistaGenomics", + "PioneerSupplies", + "ApexInterstellar", + "FrontlineSolutions" + ] + } + } + } + } + } + } + }, + { + "ordinal": 10, + "name": "economies: Vec", + "type_info": { + "Custom": { + "name": "economyshare[]", + "kind": { + "Array": { + "Custom": { + "name": "economyshare", + "kind": { + "Composite": [ + [ + "name", + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + ], + [ + "proportion", + "Float8" + ] + ] + } + } + } + } + } + } + }, + { + "ordinal": 11, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 12, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503" +} diff --git a/.sqlx/query-b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265.json b/.sqlx/query-b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265.json new file mode 100644 index 0000000..9495f88 --- /dev/null +++ b/.sqlx/query-b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265.json @@ -0,0 +1,218 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO bodies (\n name,\n id,\n parent_id,\n system_address,\n updated_at,\n updated_by,\n\n planet_class,\n tidal_lock,\n landable,\n terraform_state,\n atmosphere,\n atmosphere_type,\n volcanism,\n\n mass,\n radius,\n surface_gravity,\n surface_temperature,\n surface_pressure,\n semi_major_axis,\n eccentricity,\n orbital_inclination,\n periapsis,\n orbital_period,\n rotation_period,\n axial_tilt,\n ascending_node,\n mean_anomaly,\n\n was_mapped,\n was_discovered)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17,\n $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)\n ON CONFLICT (system_address, id)\n DO UPDATE SET\n name = $1,\n parent_id = $3,\n updated_at = $5,\n updated_by = $6,\n\n planet_class = $7,\n tidal_lock = $8,\n landable = $9,\n terraform_state = $10,\n atmosphere = $11,\n atmosphere_type = $12,\n volcanism = $13,\n\n mass = $14,\n radius = $15,\n surface_gravity = $16,\n surface_temperature = $17,\n surface_pressure = $18,\n semi_major_axis = $19,\n eccentricity = $20,\n orbital_inclination = $21,\n periapsis = $22,\n orbital_period = $23,\n rotation_period = $24,\n axial_tilt = $25,\n ascending_node = $26,\n mean_anomaly = $27,\n\n was_mapped = $28,\n was_discovered = $29\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "planet_class", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "tidal_lock", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "landable", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "terraform_state", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "atmosphere", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "atmosphere_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "volcanism", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "mass", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "surface_gravity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "surface_pressure", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 25, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 26, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 27, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 28, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Varchar", + "Int2", + "Int2", + "Int8", + "Timestamp", + "Varchar", + "Varchar", + "Bool", + "Bool", + "Varchar", + "Varchar", + "Varchar", + "Varchar", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Float4", + "Bool", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265" +} diff --git a/.sqlx/query-ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869.json b/.sqlx/query-ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869.json new file mode 100644 index 0000000..1379c5b --- /dev/null +++ b/.sqlx/query-ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO factions (name)\n VALUES ($1)\n ON CONFLICT (lower(name))\n DO UPDATE\n SET name = factions.name\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Varchar" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869" +} diff --git a/.sqlx/query-ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b.json b/.sqlx/query-ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b.json new file mode 100644 index 0000000..df2e5c3 --- /dev/null +++ b/.sqlx/query-ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b.json @@ -0,0 +1,129 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO conflicts (\n system_address,\n type,\n status,\n faction_1_id,\n faction_1_stake,\n faction_1_won_days,\n faction_2_id,\n faction_2_stake,\n faction_2_won_days,\n updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)\n ON CONFLICT (system_address, faction_1_id, faction_2_id)\n DO UPDATE SET\n type = $2,\n status = $3,\n faction_1_stake = $5,\n faction_1_won_days = $6,\n faction_2_stake = $8,\n faction_2_won_days = $9,\n updated_at = $10\n RETURNING\n system_address,\n type AS \"ty: FactionConflictType\",\n status AS \"status: Status\",\n faction_1_id,\n faction_1_stake,\n faction_1_won_days,\n faction_2_id,\n faction_2_stake,\n faction_2_won_days,\n updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "ty: FactionConflictType", + "type_info": { + "Custom": { + "name": "conflict", + "kind": { + "Enum": [ + "War", + "CivilWar", + "Election" + ] + } + } + } + }, + { + "ordinal": 2, + "name": "status: Status", + "type_info": { + "Custom": { + "name": "status", + "kind": { + "Enum": [ + "Active", + "Pending", + "Recovering" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "faction_1_id", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "faction_1_stake", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "faction_1_won_days", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "faction_2_id", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "faction_2_stake", + "type_info": "Varchar" + }, + { + "ordinal": 8, + "name": "faction_2_won_days", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + { + "Custom": { + "name": "conflict", + "kind": { + "Enum": [ + "War", + "CivilWar", + "Election" + ] + } + } + }, + { + "Custom": { + "name": "status", + "kind": { + "Enum": [ + "Active", + "Pending", + "Recovering" + ] + } + } + }, + "Int4", + "Varchar", + "Int4", + "Int4", + "Varchar", + "Int4", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false, + false, + true, + false, + false + ] + }, + "hash": "ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b" +} diff --git a/.sqlx/query-c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c.json b/.sqlx/query-c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c.json new file mode 100644 index 0000000..521a485 --- /dev/null +++ b/.sqlx/query-c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c.json @@ -0,0 +1,153 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions on faction_id = id\n ORDER BY influence DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "faction_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "state: JournalState", + "type_info": { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + } + }, + { + "ordinal": 4, + "name": "influence", + "type_info": "Float4" + }, + { + "ordinal": 5, + "name": "happiness: Happiness", + "type_info": { + "Custom": { + "name": "happiness", + "kind": { + "Enum": [ + "Elated", + "Happy", + "Discontented", + "Unhappy", + "Despondent" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + false, + false, + false + ] + }, + "hash": "c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c" +} diff --git a/.sqlx/query-c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24.json b/.sqlx/query-c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24.json new file mode 100644 index 0000000..dce2cec --- /dev/null +++ b/.sqlx/query-c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24.json @@ -0,0 +1,178 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE name ILIKE $1\n ORDER BY name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24" +} diff --git a/.sqlx/query-d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad.json b/.sqlx/query-d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad.json new file mode 100644 index 0000000..3f097c5 --- /dev/null +++ b/.sqlx/query-d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad.json @@ -0,0 +1,120 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO systems\n (address,\n name,\n position,\n population,\n security,\n government,\n allegiance,\n primary_economy,\n secondary_economy,\n updated_at,\n updated_by)\n VALUES ($1, UPPER($2), $3::geometry, $4, $5, $6, $7, $8, $9, $10, $11)\n ON CONFLICT (address)\n DO UPDATE SET\n position = COALESCE($3, systems.position),\n population = COALESCE($4, systems.population),\n security = COALESCE($5, systems.security),\n government = COALESCE($6, systems.government),\n allegiance = COALESCE($7, systems.allegiance),\n primary_economy = COALESCE($8, systems.primary_economy),\n secondary_economy = COALESCE($9, systems.secondary_economy),\n updated_at = $10,\n updated_by = $11\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text", + { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + }, + "Int8", + { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + }, + { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + }, + { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + }, + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + }, + { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + }, + "Timestamp", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad" +} diff --git a/.sqlx/query-dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3.json b/.sqlx/query-dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3.json new file mode 100644 index 0000000..e7ba217 --- /dev/null +++ b/.sqlx/query-dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3.json @@ -0,0 +1,43 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO markets (\n id,\n system_address,\n station_name,\n updated_at)\n VALUES ($1, $2, $3, $4)\n ON CONFLICT (id)\n DO UPDATE SET\n updated_at = $4\n RETURNING\n id,\n system_address,\n station_name,\n updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "station_name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Varchar", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3" +} diff --git a/.sqlx/query-df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e.json b/.sqlx/query-df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e.json new file mode 100644 index 0000000..50c30ca --- /dev/null +++ b/.sqlx/query-df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e.json @@ -0,0 +1,156 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions ON faction_id = id\n WHERE system_address = $1 AND faction_id = $2\n ORDER BY influence DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "faction_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "state: JournalState", + "type_info": { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + } + }, + { + "ordinal": 4, + "name": "influence", + "type_info": "Float4" + }, + { + "ordinal": 5, + "name": "happiness: Happiness", + "type_info": { + "Custom": { + "name": "happiness", + "kind": { + "Enum": [ + "Elated", + "Happy", + "Discontented", + "Unhappy", + "Despondent" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + false, + false, + false + ] + }, + "hash": "df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e" +} diff --git a/.sqlx/query-e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224.json b/.sqlx/query-e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224.json new file mode 100644 index 0000000..e080979 --- /dev/null +++ b/.sqlx/query-e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO articles (title, date, body)\n VALUES ($1, $2, $3)\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "date", + "type_info": "Date" + }, + { + "ordinal": 3, + "name": "body", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Date", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false + ] + }, + "hash": "e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224" +} diff --git a/.sqlx/query-eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd.json b/.sqlx/query-eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd.json new file mode 100644 index 0000000..c245454 --- /dev/null +++ b/.sqlx/query-eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd.json @@ -0,0 +1,178 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE name = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd" +} diff --git a/.sqlx/query-edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52.json b/.sqlx/query-edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52.json new file mode 100644 index 0000000..0e76284 --- /dev/null +++ b/.sqlx/query-edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52.json @@ -0,0 +1,155 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions ON faction_id = id\n WHERE system_address = $1\n ORDER BY influence DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "faction_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "state: JournalState", + "type_info": { + "Custom": { + "name": "state", + "kind": { + "Enum": [ + "Blight", + "Boom", + "Bust", + "CivilLiberty", + "CivilUnrest", + "CivilWar", + "ColdWar", + "Colonisation", + "Drought", + "Election", + "Expansion", + "Famine", + "HistoricEvent", + "InfrastructureFailure", + "Investment", + "Lockdown", + "NaturalDisaster", + "Outbreak", + "PirateAttack", + "PublicHoliday", + "Retreat", + "Revolution", + "TechnologicalLeap", + "Terrorism", + "TradeWar", + "War" + ] + } + } + } + }, + { + "ordinal": 4, + "name": "influence", + "type_info": "Float4" + }, + { + "ordinal": 5, + "name": "happiness: Happiness", + "type_info": { + "Custom": { + "name": "happiness", + "kind": { + "Enum": [ + "Elated", + "Happy", + "Discontented", + "Unhappy", + "Despondent" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + false, + false, + false + ] + }, + "hash": "edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52" +} diff --git a/.sqlx/query-ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8.json b/.sqlx/query-ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8.json new file mode 100644 index 0000000..4141814 --- /dev/null +++ b/.sqlx/query-ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8.json @@ -0,0 +1,178 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n systems.address,\n systems.name,\n systems.position AS \"position!: Option>\",\n systems.population,\n systems.security as \"security: Security\",\n systems.government as \"government: Government\",\n systems.allegiance as \"allegiance: Allegiance\",\n systems.primary_economy as \"primary_economy: Economy\",\n systems.secondary_economy as \"secondary_economy: Economy\",\n systems.updated_at,\n systems.updated_by\n FROM systems\n JOIN system_factions ON system_factions.system_address = systems.address\n JOIN factions ON factions.id = system_factions.faction_id\n WHERE factions.name ILIKE $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "position!: Option>", + "type_info": { + "Custom": { + "name": "geometry", + "kind": "Simple" + } + } + }, + { + "ordinal": 3, + "name": "population", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "security: Security", + "type_info": { + "Custom": { + "name": "security", + "kind": { + "Enum": [ + "Low", + "Medium", + "High" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "government: Government", + "type_info": { + "Custom": { + "name": "government", + "kind": { + "Enum": [ + "Anarchy", + "Carrier", + "Communism", + "Confederacy", + "Cooperative", + "Corporate", + "Democracy", + "Dictatorship", + "Engineer", + "Feudal", + "Patronage", + "Prison", + "PrisonColony", + "Theocracy" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "allegiance: Allegiance", + "type_info": { + "Custom": { + "name": "allegiance", + "kind": { + "Enum": [ + "Alliance", + "Empire", + "Federation", + "Guardian", + "Independent", + "PilotsFederation", + "PlayerPilots", + "Thargoid" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "primary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "secondary_economy: Economy", + "type_info": { + "Custom": { + "name": "economy", + "kind": { + "Enum": [ + "Agriculture", + "Carrier", + "Colony", + "Extraction", + "HighTech", + "Industrial", + "Military", + "Prison", + "Refinery", + "Service", + "Terraforming", + "Tourism", + "Undefined" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "updated_by", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8" +} diff --git a/.sqlx/query-f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67.json b/.sqlx/query-f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67.json new file mode 100644 index 0000000..35d588d --- /dev/null +++ b/.sqlx/query-f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67.json @@ -0,0 +1,191 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1 AND id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_address", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Int2" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_by", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "planet_class", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "tidal_lock", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "landable", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "terraform_state", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "atmosphere", + "type_info": "Varchar" + }, + { + "ordinal": 11, + "name": "atmosphere_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "volcanism", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "mass", + "type_info": "Float4" + }, + { + "ordinal": 14, + "name": "radius", + "type_info": "Float4" + }, + { + "ordinal": 15, + "name": "surface_gravity", + "type_info": "Float4" + }, + { + "ordinal": 16, + "name": "surface_temperature", + "type_info": "Float4" + }, + { + "ordinal": 17, + "name": "surface_pressure", + "type_info": "Float4" + }, + { + "ordinal": 18, + "name": "semi_major_axis", + "type_info": "Float4" + }, + { + "ordinal": 19, + "name": "eccentricity", + "type_info": "Float4" + }, + { + "ordinal": 20, + "name": "orbital_inclination", + "type_info": "Float4" + }, + { + "ordinal": 21, + "name": "periapsis", + "type_info": "Float4" + }, + { + "ordinal": 22, + "name": "orbital_period", + "type_info": "Float4" + }, + { + "ordinal": 23, + "name": "rotation_period", + "type_info": "Float4" + }, + { + "ordinal": 24, + "name": "axial_tilt", + "type_info": "Float4" + }, + { + "ordinal": 25, + "name": "ascending_node", + "type_info": "Float4" + }, + { + "ordinal": 26, + "name": "mean_anomaly", + "type_info": "Float4" + }, + { + "ordinal": 27, + "name": "was_mapped", + "type_info": "Bool" + }, + { + "ordinal": 28, + "name": "was_discovered", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int2" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67" +} diff --git a/.sqlx/query-fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575.json b/.sqlx/query-fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575.json new file mode 100644 index 0000000..ad56ae7 --- /dev/null +++ b/.sqlx/query-fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM articles\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "date", + "type_info": "Date" + }, + { + "ordinal": 3, + "name": "body", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + true, + false, + false + ] + }, + "hash": "fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575" +} diff --git a/sqlx-data.json b/sqlx-data.json new file mode 100644 index 0000000..95c8c85 --- /dev/null +++ b/sqlx-data.json @@ -0,0 +1,3 @@ +{ + "db": "PostgreSQL" +} \ No newline at end of file