Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitinprakash96/clojure-duckdb-examples
Showcasing how to use duckdb with clojure
https://github.com/nitinprakash96/clojure-duckdb-examples
Last synced: 27 days ago
JSON representation
Showcasing how to use duckdb with clojure
- Host: GitHub
- URL: https://github.com/nitinprakash96/clojure-duckdb-examples
- Owner: nitinprakash96
- License: unlicense
- Created: 2023-04-09T03:00:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-09T04:11:35.000Z (over 1 year ago)
- Last Synced: 2023-08-02T09:10:46.431Z (over 1 year ago)
- Language: Clojure
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cloduck
Just laying down some examples on how to use duckdb with clojure.
## Usage
```clojure
cloduck.core> (use 'cloduck.core :reload)
nil
cloduck.core> (run-pragma :version)
{:library_version "v0.7.1", :source_id "b00b93f0b1"}
cloduck.core> (run-pragma :database-size)
{:free_blocks 0,
:memory_usage "0 bytes",
:database_name "file",
:wal_size "0 bytes",
:block_size 262144,
:memory_limit "6.8GB",
:total_blocks 3,
:used_blocks 3,
:database_size "786KB"}
cloduck.core>
```