https://github.com/prql/prql-jetbrains
JetBrains IDE PRQL plugin
https://github.com/prql/prql-jetbrains
Last synced: 5 months ago
JSON representation
JetBrains IDE PRQL plugin
- Host: GitHub
- URL: https://github.com/prql/prql-jetbrains
- Owner: PRQL
- License: apache-2.0
- Created: 2023-01-06T03:31:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T12:00:03.000Z (almost 2 years ago)
- Last Synced: 2025-08-24T20:40:42.839Z (5 months ago)
- Language: Kotlin
- Homepage: https://plugins.jetbrains.com/plugin/20793-prql
- Size: 205 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
prql-jetbrains-plugin
========================
PRQL plugin allows you to edit [PRQL](https://prql-lang.org/) in JetBrains IDEs.
Features:
- Syntax parsing
- Code highlight
- Code format
- SQL injection
- Code completion
- SQL transpile support
- SQL Target dialect support from `SQL dialects`
- Execute PRQL by JDBC Console
- Sync transpiled SQL from `@PRQL` to `@Query`
# Installation
- Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "prql" >
Install Plugin
- Manually:
Download the [latest release](https://github.com/linux-china/prql-jetbrains-plugin/releases/latest) and install it manually using
Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
# Type System
* primitives: int, float, bool, text, date, time and timestamp
* text: `"hello world"`, `'hello'`, `"""I said "hello world"!"""`,
* date/time/timestamp: `@2022-12-31`, ` @2020-01-01T13:19:55-08:00`, `@16:54:32`
* range: `50..100`
* array: `[]`
* tuple: `{}`
* function: `let add a b -> a+b`
### String
* F-strings: Build up a new string from a set of columns or values
* S-strings: Insert SQL statements directly into the query. Use when PRQL doesn’t have an equivalent facility.
* R-strings: R-strings handle escape characters without special treatment:
# Todo
* Column code completion
# References
* PRQL Home: https://prql-lang.org/
* PRQL Grammar: https://github.com/PRQL/prql/blob/main/prql-lezer/src/prql.grammar#L32
* PRQL extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=PRQL-lang.prql-vscode