@lti-tool/d1
v1.0.0
Published
Cloudflare D1 storage for LTI 1.3 @lti-tool
Readme
@lti-tool/d1
Cloudflare D1 storage adapter for @lti-tool/core.
Installation
npm install @lti-tool/d1Usage
Apply the Drizzle migrations in drizzle/ to your D1 database, then pass the
binding to D1Storage.
import { LTITool } from '@lti-tool/core';
import { D1Storage } from '@lti-tool/d1';
const storage = new D1Storage({
database: env.DB,
});
const ltiTool = new LTITool({
storage,
// ... other config
});Schema
This adapter creates prefixed tables:
lti_tool_clientslti_tool_deploymentslti_tool_sessionslti_tool_nonceslti_tool_registration_sessions
The prefix keeps LTI storage separate from application tables in a shared D1 database.
