Deta Base is a Clojure library designed to simplify interactions with the Deta database. It provides a straightforward way to initialize a database connection and perform basic operations such as inserting data. This library is ideal for developers looking to integrate Deta database functionality into their Clojure applications.
Currently, this library is not available as a dependency. However, I am working on it.
To initialize a database connection, use the base
function:
(def db (base/base "your_collection_key" "your_basename"))
To insert data into the Deta database, use the put
function:
(base/put db {:a 1 :b 2} "item-key")
The library includes a test suite that covers various scenarios. To run the tests, execute the following command in your project directory:
lein test
Contributions are welcome! Please read the CONTRIBUTING.md for details on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
For any questions or suggestions, please open an issue on GitHub.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close