CozyEngine Enum

Overview of the CozyEngine enum in the Cozy persistence library.

CozyEngine Enum

The CozyEngine enum represents the types of storage engines supported by the Cozy persistence library. Each engine type has its own characteristics and use cases, allowing you to choose the best fit for your application's needs.

Available Storage Engines

  • sqlite: Default SQLite engine implementation for Flutter/Dart.
  • sqlite3: SQLite3 implementation with additional features and performance enhancements.
  • memory: In-memory storage engine for temporary data and testing purposes.

Example Usage

// Initialize storage with SQLite engine
final storage = CozyData.initialize(engine: CozyEngine.sqlite);

// Use in-memory storage for testing
final testStorage = CozyData.initialize(engine: CozyEngine.memory);

// Use SQLite3 for advanced features
final advancedStorage = CozyData.initialize(engine: CozyEngine.sqlite3);