Skip to content

Postgres database of Pokemon data imported from CSV.

Notifications You must be signed in to change notification settings

ninjarobot/pokedata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokedata

A Postgres database of pokemon from importing CSV pokedex.

Getting Started

Supports macOS and Linux.

Install Postgres locally and ensure your user has rights to create a database.

Install make.

Run make all - this creates the tables and views, then downloads and imports the data. After that, connect with psql -d pokedata and query the pokedex data.

pokedata=# select id, identifier, array_agg(type) as types, color, shape from pokemon_with_type group by id, identifier, color, shape;
  id   |       identifier        |       types        | color  |   shape   
-------+-------------------------+--------------------+--------+-----------
     1 | bulbasaur               | {grass,poison}     | green  | quadruped
     2 | ivysaur                 | {grass,poison}     | green  | quadruped
     3 | venusaur                | {grass,poison}     | green  | quadruped
     4 | charmander              | {fire}             | red    | upright
     5 | charmeleon              | {fire}             | red    | upright
...

About

Postgres database of Pokemon data imported from CSV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published