Skip to content

Commit

Permalink
[test] show all tables;
Browse files Browse the repository at this point in the history
  • Loading branch information
harold committed Sep 5, 2024
1 parent cb70be8 commit 1eab826
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tmducken/duckdb_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,14 @@
{"country" "US", "name" "Seattle", "2010" 608}]
(ds/rows result-ds))))))

(deftest show-all-tables-test
(try
(duckdb/drop-table! @conn* "foo")
(catch Throwable e nil))
(let [ds (-> (ds/->dataset [{:a 1}])
(ds/set-dataset-name "foo"))]
(duckdb/create-table! @conn* ds)
(duckdb/insert-dataset! @conn* ds)
;; TODO: HH 2024-09-05 - come up with a nice assertion here once we know
;; what the results of this are supposed to look like
(duckdb/sql->dataset @conn* "show all tables;")))

0 comments on commit 1eab826

Please sign in to comment.