@openland/foundationdb

@openland/foundationdb

  • Docs
  • Chat

›Reference

Getting Started

  • Getting Started
  • Installation
  • Hello world

Entity Layer

  • Overview

Layers

  • Singleton Worker
  • Migrations
  • PubSub
  • Random ID
  • Distributed Lock

Reference

  • Database
  • Transactions
  • Subspaces
  • Directory Layer

Directory Layer

Managing global key space across teams and modules can be hard in large projects. You have to avoid conflicts with other subsystems, try to keep key size small and allocation need to be fast and conflict-free.

For this purposes there is a Directory Layer, most basic layer in FoundationDB ecosystem and it is built-in in most available bindings.

Creation of directory

Database object has field directory that contains default DirectoryLayer and it is most convenient way to work with directories.

This will create or load existing prefix that you can use in your code:

let prefix = await db.directory.createOrOpen(ctx, ['com.example', 'tutorial']);
← Subspaces
Docs
Getting Started
Community
Chat in Openland
Sources
GitHubStar
Copyright © 2021 Openland