veekun_pokedex/_sources/main-tables.txt

209 lines
4.6 KiB
Text
Raw Normal View History

2011-11-18 23:36:39 +00:00
The pokédex tables
==================
.. module:: pokedex.db.tables
2012-02-12 23:14:24 +00:00
The :mod:`pokedex.db.tables` module defines all of the tables in the Pokédex.
They are all defined with SQLAlchemy's
2011-11-18 23:36:39 +00:00
:mod:`~sqlalchemy.ext.declarative` extension.
2012-02-12 23:14:24 +00:00
To introspect the tables programmatically, you can use the following:
2011-11-18 23:36:39 +00:00
.. data:: mapped_classes
A list of all the classes you see below.
2012-02-12 23:14:24 +00:00
.. data:: metadata
The SQLAlchemy :class:`~sqlalchemy.schema.MetaData` containing all the
tables.
Each of the classes has a ``translation_classes`` attribute: a potentially
2011-11-18 23:36:39 +00:00
empty list of translation classes. See :mod:`pokedex.db.multilang` for how
these work.
Many tables have these columns:
- **id**: An integer primary key. Sometimes it's semantically meaningful, most
2012-02-12 23:14:24 +00:00
often it isn't.
2011-11-18 23:36:39 +00:00
- **identifier**: A string identifier of the class, and the preferred way to
2012-02-12 23:14:24 +00:00
access individual items.
2011-11-18 23:36:39 +00:00
- **name**: A name (uses the multilang functionality)
Pokémon
-------
.. dex-table:: PokemonSpecies
.. dex-table:: Pokemon
.. dex-table:: PokemonForm
.. dex-table:: EvolutionChain
.. dex-table:: PokemonEvolution
Moves
-----
.. dex-table:: Move
.. dex-table:: MoveEffect
.. dex-table:: MoveMeta
Items
-----
.. dex-table:: Item
.. dex-table:: Berry
Types
-----
.. dex-table:: Type
Abilities
---------
.. dex-table:: Ability
Language
--------
.. dex-table:: Language
Version stuff
-------------
.. dex-table:: Generation
.. dex-table:: VersionGroup
.. dex-table:: Version
.. dex-table:: Pokedex
.. dex-table:: Region
Encounters
----------
.. dex-table:: Location
.. dex-table:: LocationArea
.. dex-table:: LocationAreaEncounterRate
.. dex-table:: Encounter
.. dex-table:: EncounterCondition
.. dex-table:: EncounterConditionValue
.. dex-table:: EncounterMethod
.. dex-table:: EncounterSlot
Contests
--------
.. dex-table:: ContestCombo
.. dex-table:: ContestEffect
.. dex-table:: SuperContestCombo
.. dex-table:: SuperContestEffect
Enum tables
-----------
.. dex-table:: BerryFirmness
.. dex-table:: ContestType
.. dex-table:: EggGroup
.. dex-table:: EvolutionTrigger
2012-09-27 04:52:47 +00:00
.. dex-table:: Gender
2011-11-18 23:36:39 +00:00
.. dex-table:: GrowthRate
.. dex-table:: ItemCategory
.. dex-table:: ItemFlingEffect
.. dex-table:: ItemPocket
.. dex-table:: MoveBattleStyle
.. dex-table:: MoveDamageClass
.. dex-table:: MoveMetaAilment
.. dex-table:: MoveMetaCategory
.. dex-table:: MoveTarget
.. dex-table:: Nature
2012-06-09 07:19:53 +00:00
.. dex-table:: PalParkArea
2011-11-18 23:36:39 +00:00
.. dex-table:: PokemonColor
.. dex-table:: PokemonMoveMethod
.. dex-table:: PokemonShape
.. dex-table:: Stat
Changelogs
----------
.. dex-table:: AbilityChangelog
.. dex-table:: MoveEffectChangelog
2012-02-12 23:14:24 +00:00
.. dex-table:: MoveChangelog
2011-11-18 23:36:39 +00:00
Flavor text
-----------
.. dex-table:: ItemFlavorText
.. dex-table:: AbilityFlavorText
.. dex-table:: MoveFlavorText
.. dex-table:: PokemonSpeciesFlavorText
Association tables
------------------
.. dex-table:: BerryFlavor
.. dex-table:: EncounterConditionValueMap
2012-02-12 23:14:24 +00:00
.. dex-table:: ItemFlag
2011-11-18 23:36:39 +00:00
.. dex-table:: ItemFlagMap
.. dex-table:: Machine
.. dex-table:: MoveFlag
.. dex-table:: MoveFlagMap
.. dex-table:: MoveMetaStatChange
.. dex-table:: NatureBattleStylePreference
.. dex-table:: NaturePokeathlonStat
.. dex-table:: PokeathlonStat
2014-07-04 03:20:43 +00:00
.. dex-table:: PokedexVersionGroup
2011-11-18 23:36:39 +00:00
.. dex-table:: PokemonAbility
.. dex-table:: PokemonEggGroup
.. dex-table:: PokemonFormPokeathlonStat
.. dex-table:: PokemonHabitat
.. dex-table:: PokemonMove
.. dex-table:: PokemonStat
.. dex-table:: PokemonItem
.. dex-table:: PokemonType
.. dex-table:: TypeEfficacy
2012-06-09 07:19:53 +00:00
.. dex-table:: VersionGroupPokemonMoveMethod
2011-11-18 23:36:39 +00:00
.. dex-table:: VersionGroupRegion
Index maps
----------
.. dex-table:: ItemGameIndex
.. dex-table:: LocationGameIndex
.. dex-table:: PokemonDexNumber
2012-06-09 07:19:53 +00:00
.. dex-table:: PokemonFormGeneration
2011-11-18 23:36:39 +00:00
.. dex-table:: PokemonGameIndex
2014-07-04 03:20:43 +00:00
.. dex-table:: TypeGameIndex
2011-11-18 23:36:39 +00:00
Mics tables
-----------
.. dex-table:: Experience
2012-06-09 07:19:53 +00:00
.. dex-table:: PalPark
2011-11-18 23:36:39 +00:00
.. dex-table:: StatHint
2012-09-27 04:52:47 +00:00
Conquest tables
---------------
.. dex-table:: ConquestEpisode
.. dex-table:: ConquestEpisodeWarrior
.. dex-table:: ConquestKingdom
.. dex-table:: ConquestMaxLink
.. dex-table:: ConquestMoveData
.. dex-table:: ConquestMoveDisplacement
.. dex-table:: ConquestMoveEffect
.. dex-table:: ConquestMoveRange
.. dex-table:: ConquestPokemonAbility
.. dex-table:: ConquestPokemonEvolution
.. dex-table:: ConquestPokemonMove
.. dex-table:: ConquestPokemonStat
.. dex-table:: ConquestStat
.. dex-table:: ConquestTransformationPokemon
.. dex-table:: ConquestTransformationWarrior
.. dex-table:: ConquestWarrior
.. dex-table:: ConquestWarriorArchetype
.. dex-table:: ConquestWarriorRank
.. dex-table:: ConquestWarriorRankStatMap
.. dex-table:: ConquestWarriorSkill
.. dex-table:: ConquestWarriorSpecialty
.. dex-table:: ConquestWarriorStat
.. dex-table:: ConquestWarriorTransformation