Skip to content

Commit f3d7142

Browse files
committed
feat: shim for grafana postgresql query builder queries (#259)
* feat: introduce support for grafana query builder * chore: update readme * fix: lint and test * chore: simplify
1 parent 4527747 commit f3d7142

File tree

6 files changed

+817
-47
lines changed

6 files changed

+817
-47
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ the [pgwire](https://github.com/sunng87/pgwire) project.
3636
- [x] pgcli
3737
- [x] VSCode SQLTools
3838
- [ ] Intellij Datagrip
39-
- BI
39+
- BI & Visualization
4040
- [x] Metabase
4141
- [ ] PowerBI
42+
- [x] Grafana
4243

4344
## Quick Start
4445

datafusion-pg-catalog/src/pg_catalog.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub mod pg_settings;
4242
pub mod pg_stat_gssapi;
4343
pub mod pg_tables;
4444
pub mod pg_views;
45+
pub mod quote_ident_udf;
4546

4647
const PG_CATALOG_TABLE_PG_AGGREGATE: &str = "pg_aggregate";
4748
const PG_CATALOG_TABLE_PG_AM: &str = "pg_am";
@@ -1481,6 +1482,8 @@ where
14811482
session_context.register_udf(create_pg_stat_get_numscans());
14821483
session_context.register_udf(create_pg_get_constraintdef());
14831484
session_context.register_udf(create_pg_get_partition_ancestors_udf());
1485+
session_context.register_udf(quote_ident_udf::create_quote_ident_udf());
1486+
session_context.register_udf(quote_ident_udf::create_parse_ident_udf());
14841487

14851488
Ok(())
14861489
}

0 commit comments

Comments
 (0)