Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table pokemon_location. closes #2 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

misraved
Copy link
Owner

@misraved misraved commented Aug 2, 2021

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
 .inspect pokemon_location
+--------------+--------+----------------------------------------------------------------+
| column       | type   | description                                                    |
+--------------+--------+----------------------------------------------------------------+
| areas        | jsonb  | Areas that can be found in this location                       |
| game_indices | jsonb  | A list of game indices relevant to location item by generation |
| id           | bigint | The identifier for this resource.                              |
| name         | text   | The name for this resource.                                    |
| names        | jsonb  | Name of the region in different languages                      |
| title        | text   | Title of the resource.                                         |
+--------------+--------+----------------------------------------------------------------+
select name, id from pokemon_location
+----------------------------------+-----+
| name                             | id  |
+----------------------------------+-----+
| spring-path                      | 17  |
| canalave-city                    | 1   |
| solaceon-ruins                   | 12  |
| oreburgh-mine                    | 6   |
| ravaged-path                     | 14  |
| turnback-cave                    | 18  |
| wayward-cave                     | 20  |
| great-marsh                      | 11  |
| sunyshore-city                   | 4   |
| valley-windworks                 | 7   |
| eterna-forest                    | 8   |
| snowpoint-temple                 | 19  |
| fuego-ironworks                  | 9   |
| sinnoh-pokemon-league            | 5   |
| sinnoh-route-208                 | 38  |
| old-chateau                      | 25  |
| sinnoh-route-201                 | 31  |
| lost-tower                       | 40  |
| eterna-city                      | 2   |
| iron-island                      | 24  |
| mt-coronet                       | 10  |
| acuity-lakefront                 | 30  |
| valor-lakefront                  | 29  |
| sinnoh-route-209                 | 39  |
| lake-verity                      | 26  |
| oreburgh-gate                    | 15  |
| trophy-garden                    | 23  |
| stark-mountain                   | 16  |
| lake-valor                       | 27  |
| ruin-maniac-cave                 | 22  |
| sinnoh-route-207                 | 37  |
| sinnoh-route-210                 | 41  |
| sinnoh-route-203                 | 33  |
| sinnoh-route-204                 | 34  |
| lake-acuity                      | 28  |
| sinnoh-route-205                 | 35  |
| sinnoh-route-206                 | 36  |
| sinnoh-route-202                 | 32  |
| sinnoh-route-214                 | 45  |
| sinnoh-route-227                 | 55  |
| twinleaf-town                    | 58  |
| sinnoh-route-217                 | 48  |
| sinnoh-route-216                 | 47  |
| sinnoh-route-215                 | 46  |
| sinnoh-route-229                 | 57  |
| sinnoh-route-224                 | 53  |
select name, id, game_indices from pokemon_location where name = 'battle-park'
+-------------+-----+------------------------------------------------------------------------------------------------------------+
| name        | id  | game_indices                                                                                               |
+-------------+-----+------------------------------------------------------------------------------------------------------------+
| battle-park | 213 | [{"game_index":111,"generation":{"name":"generation-iv","url":"https://pokeapi.co/api/v2/generation/4/"}}] |
+-------------+-----+------------------------------------------------------------------------------------------------------------+
select name, id, game_indices from pokemon_location where id=214
+-----------------+-----+------------------------------------------------------------------------------------------------------------+
| name            | id  | game_indices                                                                                               |
+-----------------+-----+------------------------------------------------------------------------------------------------------------+
| battle-frontier | 214 | [{"game_index":112,"generation":{"name":"generation-iv","url":"https://pokeapi.co/api/v2/generation/4/"}}] |
+-----------------+-----+------------------------------------------------------------------------------------------------------------+

@misraved misraved self-assigned this Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant