Read World of Warcraft DB2 (WDC5) client database files, typed with WoWDBDefs definitions
Compatibility Matrix
This table covers all DuckDB releases that have not reached end-of-life, including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.
| Platform | 1.5.5 | 1.5.6 | 2.0.0 | 2.0.1 |
|---|---|---|---|---|
| Linux AMD64 | ||||
| Linux ARM64 | ||||
| macOS AMD64 | ||||
| macOS ARM64 | ||||
| Windows AMD64 | ||||
| Windows ARM64 | ||||
| WebAssembly |
Installing and Loading
INSTALL wow_db2 FROM community;
LOAD wow_db2;
Example
INSTALL wow_db2 FROM community;
LOAD wow_db2;
-- Typed columns from a WoWDBDefs definitions directory (or a single .dbd file)
SELECT * FROM read_db2('GlobalStrings.db2', dbd := 'WoWDBDefs/definitions/');
-- Set the definitions once, then query .db2 files by path
SET db2_definitions = 'WoWDBDefs/definitions/';
SELECT BaseTag, TagText_lang FROM 'GlobalStrings.db2' WHERE Flags & 1;
About wow_db2
Reads World of Warcraft .db2 client database files (WDC5) as tables. Column names and
types come from WoWDBDefs .dbd definitions,
matched by the file's layout hash; without one, columns are id, field_N and relation.
Sections encrypted with a TACT key the extractor did not have are zero-filled on disk and skipped, so their rows are missing.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| read_db2 | table | Read a WoW DB2 (WDC5) file. dbd names a WoWDBDefs .dbd file or definitions directory (default: the db2_definitions setting); without one, columns are id, field_N and relation. | NULL | [SELECT * FROM read_db2('GlobalStrings.db2', dbd := 'definitions/'), SET db2_definitions = 'definitions/'; FROM 'GlobalStrings.db2'] |
Overloaded Functions
This extension does not add any function overloads.
Added Types
This extension does not add any types.
Added Settings
| name | description | input_type | scope | aliases | typed_value |
|---|---|---|---|---|---|
| db2_definitions | WoWDBDefs .dbd file or definitions directory that read_db2 uses by default | VARCHAR | GLOBAL | [] | |
| temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |