--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: px excerpt: | DuckDB Community Extensions Extension for querying Px-files with DuckDB. extension: name: px description: Extension for querying Px-files with DuckDB. version: 0.0.4 language: C++ build: cmake license: MIT maintainers: - toppyy repo: github: toppyy/duckdb-px ref: 8656c63225234d78e854a3ec8d66f9defe4ed120 ref_next: 8656c63225234d78e854a3ec8d66f9defe4ed120 variegata: bc40da8093fc530768255dbc3ee49b6922172dd3 docs: hello_world: | FROM read_px('your_dataset.px'); extended_description: | This extension provides the ability to query [Px-files](https://www.scb.se/en/services/statistical-programs-for-px-files/px-file-format/) with DuckDB. extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: 697 extension_download_count_pretty: 697 image: '/images/community_extensions/social_preview/preview_community_extension_px.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), 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.4.4 | 1.4.5 | 1.5.5 | 1.5.6 | 2.0.0 | | :--- | :---: | :---: | :---: | :---: | :---: | | Linux AMD64 | ❌ | ❌ | ✅ | ❌ | ✅ | | Linux ARM64 | ❌ | ❌ | ✅ | ❌ | ✅ | | macOS AMD64 | ❌ | ❌ | ✅ | ❌ | ✅ | | macOS ARM64 | ❌ | ❌ | ✅ | ❌ | ✅ | | Windows AMD64 | ❌ | ❌ | ✅ | ❌ | ✅ | | Windows ARM64 | ❌ | ❌ | ❌ | ❌ | ❌ | | WebAssembly | ❌ | ❌ | ✅ | ❌ | ✅ | ### Installing and Loading ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### Added Functions | function_name | function_type | description | comment | examples | |------------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | read_px | table | Reads a PX (PC-Axis) file and returns its contents as a table with STUB/HEADING variables as VARCHAR columns and a 'value' column (INTEGER if DECIMALS=0, otherwise FLOAT). | NULL | [SELECT * FROM read_px('test/data/statfin_vaerak_pxt_11rc.px');] | | read_px_metadata | table | Reads metadata from a PX (PC-Axis) file and returns the available CODE-VALUE pairs per variable without scanning the DATA section. Returns columns: 'variable' (VARCHAR), 'code' (VARCHAR), 'value' (VARCHAR, NULL if no VALUES entry exists). | NULL | [SELECT * FROM read_px_metadata('test/data/statfin_vaerak_pxt_11rc.px');, SELECT * FROM read_px_metadata('test/data/statfin_vaerak_pxt_11rc.px') WHERE variable='Sukupuoli';] | ### 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 | |----------------|---------------------------------------------------------|------------|--------|---------|-------------| | temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |