--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: toml excerpt: | DuckDB Community Extensions Parse TOML documents into JSON extension: name: toml description: Parse TOML documents into JSON version: 0.1.0 language: C++ build: cmake license: MIT maintainers: - vergenzt repo: github: vergenzt/duckdb-toml ref: 263bc5adc93675237bab5cd2de3991886c7aa45c docs: hello_world: | SELECT parse_toml(' [server] host = "localhost" port = 5432 ') AS cfg; -- the result is DuckDB's JSON type, so the JSON toolchain works directly WITH t AS (SELECT parse_toml(content) AS cfg FROM read_text('config.toml')) SELECT cfg->'server'->>'host', (cfg->'server'->'port')::INT FROM t; extended_description: | This extension provides a single scalar function, `parse_toml(VARCHAR) -> JSON`, which parses a TOML document string into DuckDB's `JSON` logical type. TOML datetimes become RFC 3339 strings that cast cleanly to DuckDB temporal types, and the TOML int/float distinction is preserved. Read TOML from local files, https, or S3 by composing with `read_text`. See the [repository](https://github.com/vergenzt/duckdb-toml) for details. extension_star_count: 1 extension_star_count_pretty: 1 extension_download_count: 719 extension_download_count_pretty: 719 image: '/images/community_extensions/social_preview/preview_community_extension_toml.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 | |---------------|---------------|-------------|---------|----------| | parse_toml | scalar | NULL | NULL | | ### Overloaded Functions This extension does not add any function overloads. ### Added Types This extension does not add any types. ### Added Settings This extension does not add any settings.