@crewdle/mist-connector-sqlite
v1.0.0
Published
A Crewdle Mist connector to use SQLite as a Key-Value Database
Downloads
78
Readme
Crewdle Mist SQLite DB Connector
Introduction
The Crewdle Mist SQLite Connector is designed to efficiently connect your Key-Value Database service with SQLite, a popular embedded database engine. This connector streamlines the process of syncing your Mist database service with SQLite, facilitating easy and reliable data storage without the need for intricate configurations or supplementary software. It's an ideal solution for persistent storage especially when running Mistlets in containerized environments where long-term persistence over restarts is crucial.
Getting Started
Before diving in, ensure you have installed the Crewdle Mist SDK.
Installation
npm install @crewdle/mist-connector-sqlite
Usage
import { getSQLiteDatabaseConnector } from '@crewdle/mist-connector-sqlite';
// Implement the connector with the base folder to store the SQLite file
const connector = getSQLiteDatabaseConnector({
baseFolder: '[BASE_FOLDER]'
});
// Create a new SDK instance
const sdk = await SDK.getInstance('[VENDOR_ID]', '[ACCESS_TOKEN]', {
keyValueDatabaseConnector: connector,
});
Need Help?
Reach out to [email protected] or raise an issue in our repository for any assistance.
Join Our Community
For an engaging discussion about your specific use cases or to connect with fellow developers, we invite you to join our Discord community. Follow this link to become a part of our vibrant group: Join us on Discord.