The primary entry point for the @futuremachine/core library.
@futuremachine/core
This function initializes a FutureMachine engine backed by database and returns its API.
database
The database instance used to read, persist, and sync the FutureMachine state.
The FutureMachineAPI backed by database.
const db = new SQLFutureDatabase('test.db');const { methods, containers, exceptions } = createFutureMachine(db); Copy
const db = new SQLFutureDatabase('test.db');const { methods, containers, exceptions } = createFutureMachine(db);
The primary entry point for the
@futuremachine/corelibrary.This function initializes a FutureMachine engine backed by
databaseand returns its API.