Integrant methods for connecting to a Algolia index.
To install, add the following to your project dependencies:
[hden/duct.database.algolia "0.1.0-SNAPSHOT"]
This library provides two things: a Boundary
record that holds a database spec, and a multimethod for :duct.database/algolia that initiates a database spec into the Boundary
.
{:duct.database/algolia {:app-id "APP_ID"
:api-key "API_KEY"
:index "INDEX_NAME"}}
When you write functions against the database, consider using a protocol and extending the Boundary record. This will allow you to easily mock or stub out the database using a tool like Shrubbery.
Copyright © 2020 Haokang Den
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close