From 92551a0eba3277a7bad378668e8912a92d69e7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Sat, 3 Apr 2021 17:35:06 +0200 Subject: [PATCH] Add csvq scheme --- README.md | 2 ++ dburl.go | 2 ++ scheme.go | 1 + 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index df901cf..adb7eb2 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ supported out of the box: | ClickHouse (clickhouse) | ch | | Couchbase (n1ql) | n1, couchbase | | Cznic QL (ql) | ql, cznic, cznicql | +| CSVQ (csvq) | csv, tsv, json | | Firebird SQL (firebirdsql) | fb, firebird | | Genji (genji) | gj | | Google BigQuery (bigquery) | bq | @@ -196,6 +197,7 @@ to be imported: | ClickHouse (clickhouse) | [github.com/ClickHouse/clickhouse-go](https://github.com/ClickHouse/clickhouse-go) | | Couchbase (n1ql) | [github.com/couchbase/go_n1ql](https://github.com/couchbase/go_n1ql) | | Cznic QL (ql) | [modernc.org/ql](https://modernc.org/ql) | +| CSVQ (csvq) | [github.com/mithrandie/csvq](https://github.com/mithrandie/csvq) | | Firebird SQL (firebirdsql) | [github.com/nakagami/firebirdsql](https://github.com/nakagami/firebirdsql) | | Genji (genji) | [github.com/genjidb/genji/sql/driver](https://github.com/genjidb/genji) | | Google BigQuery (bigquery) | [gorm.io/driver/bigquery/driver](https://gorm.io/driver/bigquery/driver) | diff --git a/dburl.go b/dburl.go index 24c33ac..2fe7b0d 100644 --- a/dburl.go +++ b/dburl.go @@ -99,6 +99,7 @@ // ClickHouse (clickhouse) | ch // Couchbase (n1ql) | n1, couchbase // Cznic QL (ql) | ql, cznic, cznicql +// CSVQ (csvq) | csv, tsv, json // Firebird SQL (firebirdsql) | fb, firebird // Genji (genji) | gj // Google BigQuery (bigquery) | bq @@ -157,6 +158,7 @@ // ClickHouse (clickhouse) | github.com/ClickHouse/clickhouse-go // Couchbase (n1ql) | github.com/couchbase/go_n1ql // Cznic QL (ql) | modernc.org/ql +// CSVQ (csvq) | github.com/mithrandie/csvq // Firebird SQL (firebirdsql) | github.com/nakagami/firebirdsql // Genji (genji) | github.com/genjidb/genji/sql/driver // Google BigQuery (bigquery) | gorm.io/driver/bigquery/driver diff --git a/scheme.go b/scheme.go index ac74efd..5cd2a41 100644 --- a/scheme.go +++ b/scheme.go @@ -78,6 +78,7 @@ func BaseSchemes() []Scheme { {"clickhouse", GenClickhouse, 0, false, []string{"ch"}, ""}, {"cosmos", GenCosmos, 0, false, []string{"cm"}, ""}, {"cql", GenCassandra, 0, false, []string{"ca", "cassandra", "datastax", "scy", "scylla"}, ""}, + {"csvq", GenOpaque, 0, true, []string{"csv", "tsv", "json"}, ""}, {"firebirdsql", GenFirebird, 0, false, []string{"fb", "firebird"}, ""}, {"genji", GenOpaque, 0, true, []string{"gj"}, ""}, {"h2", GenScheme("h2"), 0, false, nil, ""},