plydb
Skill for using the PlyDB CLI to perform SQL analysis of connected data sources. Use for SQL queries across heterogeneous databases and files such as Postgres, MySQL, CSV, Parquet, JSON, Excel, SQLite, DuckDB, Google Sheets. Triggers on "plydb", "sql", "query", "data analysis", "parquet", "csv", "excel", "database". --- # PlyDB CLI skill The `plydb` CLI can be used to query across heterogenous data sources. ## Dependencies The `plydb` binary must be available on the system. If it is not, installation instructions can be found [here](https://github.com/kineticloom/plydb?tab=readme-ov-file#installation) ## Instructions ### Configure data sources First, the data sources to make available to PlyDB must be configured in a config file as per the specification in `references\config_schema.md`. ### Query with SQL Once you have a data source config file, PlyDB can query across all of the configured data sources. Use fully qualified table names: catalog.schema.table. ```sh plydb query \ --config path/to/config/file/config.json \ "SELECT * FROM customers.default.customers c JOIN orders.default.orders o ON c.id = o.customer_id" ``` ### Fetching semantic context of the data To provide context to understand the domain and write correct SQL - PlyDB can build and provide semantic context from database `COMMENT` metadata alongside column types and foreign keys as structured YAML that follows the [Open Semantic Interchange (OSI)](https://github.com/open-semantic-interchange/OSI) specification. For quick reference, look in `references\OSI\core-spec\` for a copy of the OSI spec. ```sh plydb semantic-context --config path/to/config/file/config.json ``` #### Enriching auto-scanned context with overlays When the database lacks comments or you need to add relationships and metrics not captured from source metadata, use `--semantic-context-overlay` to supply
更新日志: Source: GitHub https://github.com/kineticloom/plydb
还没有评论,快来第一个发言吧。