All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
biff.datalevin.adapter)
module implementing Biff 2's
database adapter interface:
lifecycle functions, :biff.core/kv-get / :biff.core/kv-set /
:biff.core/kv-list, :biff.core/wrap-db-snapshot, and
:biff.core/on-tx notifications:biff.datalevin/snapshot? module option (default true); set it to false
to skip :biff.core/wrap-db-snapshot and allow concurrent graph queries:biff.datalevin.fx/q and :biff.datalevin.fx/execute-txmake-resolvers, which generates biff.graph resolvers from a Datalevin
schema, with ref attributes returned as joins:biff.datalevin/ref schema key for ref attributes whose target entity
type can't be inferred from the attribute name (e.g. :group/members)com.biffweb/core and com.biffweb/graph dependencies.Core system lifecycle (biff.datalevin.core)
start-system / stop-system for component lifecycle managementuse-datalevin component for database connection (sets both :biff.datalevin/conn and :biff/db)assoc-stop for registering cleanup functionsuse-datalevin works as a drop-in component with Biff's start-systemDatabase utilities (biff.datalevin.db)
get-db, get-connassoc-db for refreshing :biff/db snapshot (matches Biff's pattern):db/now, :db/uuid)q, lookup, lookup-all, lookup-id, entity-exists?pull, pull-many, merge-tx, delete-txAuthentication (biff.datalevin.auth)
hash-password, verify-password)create-user-tx, authenticate-user, find-user-by-email)github-authorize-url, github-exchange-code, github-get-user)oauth-authorize-url, oauth-exchange-code)create-verification-token, verify-token)Session management (biff.datalevin.session)
create-session, get-session, delete-session-tx)create-session-token, verify-session-token)datalevin-session-store)cleanup-expired-sessions-tx)Middleware (biff.datalevin.middleware)
wrap-authentication, wrap-require-auth, wrap-require-role)wrap-csrf, csrf-token, csrf-input)wrap-site-defaults, wrap-api-defaults)wrap-catch-exceptions, wrap-logging)Comprehensive test suite (50 tests, 195 assertions)
Documentation with usage examples
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |