psyduck

Pokémon-Daten nativ in DuckDB

Maintainer: Ian-Fogelman

Installation und Laden

INSTALL psyduck FROM community;
LOAD psyduck;

Beispiel

-- Create a table of pokémon and return... A duck
CREATE TABLE pokemon AS SELECT * FROM list_pokemon();
SELECT name FROM pokemon WHERE is_duck = 1 AND name LIKE '%Psyduck%';
-- Select the top 10 pokémon
SELECT * FROM list_pokemon() WHERE number <= 10;
-- Select legendary pokémon
SELECT * FROM list_pokemon() WHERE is_legendary = 1;
-- Select the best pokémon
SELECT number, name, type1, "height(m)", "weight(kg)", base_total FROM list_pokemon() WHERE name = 'Charizard';
-- Select pokemon moves
SELECT * FROM list_pokemon_moves();
-- Select gen1 items
SELECT * FROM list_pokemon_items();

Hinzugefügte Funktionen

function_name function_type description comment examples
list_pokemon table NULL NULL
list_pokemon_items table NULL NULL
list_pokemon_moves table NULL NULL

Überladene Funktionen

Diese Erweiterung fügt keine Funktionsüberladungen hinzu.

Hinzugefügte Typen

Diese Erweiterung fügt keine Typen hinzu.

Hinzugefügte Einstellungen

Diese Erweiterung fügt keine Einstellungen hinzu.