Deta 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.
This library is now available as a dependency. You can add it to your project using Leiningen/Boot by including the following in your project.clj
dependencies:
[com.adaiasmagdiel/deta "0.0.1"]
For more installation methods, such as Clojure CLI/deps.edn
, Gradle
, and Maven
, please refer to the Installation section of our documentation.
(def db (base/base "your_collection_key" "your_basename"))
(base/put db {:a 1 :b 2} "item-key")
(base/get db "item-key")
For more detailed usage instructions and examples, please refer to the Usage section of our documentation.
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 always welcome! Please review the code and send suggestions or pull requests to improve the library.
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