Liking cljdoc? Tell your friends :D

biff.datalevin.adapter

Biff 2 database adapter for Datalevin.

Provides a biff.core module that:

  • starts a Datalevin connection
  • implements biff.core's key-value store interface (:biff.core/kv-get, :biff.core/kv-set, :biff.core/kv-list)
  • provides :biff.core/wrap-db-snapshot for consistent reads
  • calls :biff.core/on-tx after transactions
  • generates biff.graph resolvers from a Datalevin schema
  • provides biff.fx handlers for queries and transactions

Example:

(def modules [(biff.fx/module) (biff.graph/module) (biff.datalevin.adapter/module {:biff.datalevin/db-path "data/myapp" :biff.datalevin/schema my-schema})])

(def start-order [:biff.datalevin/module])

See https://github.com/jacobobryant/biff/blob/master/docs/db-adapters.md

Biff 2 database adapter for Datalevin.

Provides a biff.core module that:

  - starts a Datalevin connection
  - implements biff.core's key-value store interface
    (:biff.core/kv-get, :biff.core/kv-set, :biff.core/kv-list)
  - provides :biff.core/wrap-db-snapshot for consistent reads
  - calls :biff.core/on-tx after transactions
  - generates biff.graph resolvers from a Datalevin schema
  - provides biff.fx handlers for queries and transactions

Example:

  (def modules
    [(biff.fx/module)
     (biff.graph/module)
     (biff.datalevin.adapter/module
      {:biff.datalevin/db-path "data/myapp"
       :biff.datalevin/schema my-schema})])

  (def start-order
    [:biff.datalevin/module])

See https://github.com/jacobobryant/biff/blob/master/docs/db-adapters.md
raw docstring

biff.datalevin.auth

Authentication utilities including password hashing and OAuth support.

Provides patterns for:

  • Password-based authentication with bcrypt
  • OAuth flows (GitHub, extensible to other providers)
Authentication utilities including password hashing and OAuth support.

Provides patterns for:
- Password-based authentication with bcrypt
- OAuth flows (GitHub, extensible to other providers)
raw docstring

biff.datalevin.core

Core system lifecycle management for biff-datalevin.

Provides a simple map-based component system inspired by Biff's architecture. Components are functions that take a system map and return a modified system map.

Core system lifecycle management for biff-datalevin.

Provides a simple map-based component system inspired by Biff's architecture.
Components are functions that take a system map and return a modified system map.
raw docstring

biff.datalevin.db

Database connection management, transaction helpers, and query utilities.

Provides Biff-style transaction semantics adapted for Datalevin.

Database connection management, transaction helpers, and query utilities.

Provides Biff-style transaction semantics adapted for Datalevin.
raw docstring

biff.datalevin.middleware

Ring middleware for authentication, CSRF protection, and context injection.

Provides Biff-style middleware composition for web applications.

Ring middleware for authentication, CSRF protection, and context injection.

Provides Biff-style middleware composition for web applications.
raw docstring

biff.datalevin.session

Session management backed by Datalevin.

Provides both direct session management functions and a Ring-compatible session store implementation.

Session management backed by Datalevin.

Provides both direct session management functions and a Ring-compatible
session store implementation.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close