cozy_data library

Classes

CozyData
The CozyData class is a singleton that manages database operations and caching. It provides methods to initialize the database, query data, save data, delete data, update data, and fetch data by ID.
CozyId
A utility class for generating unique identifiers in a Cozy application.
CozyQueryBuilder<T>
A powerful, immutable query builder for constructing complex SQL queries in a type-safe, fluent manner
CozyQueryController<T>
The CozyQueryController class manages query operations for a CozyQueryListener. It allows adding where conditions, joins, order by fields, and custom queries to the listener.
Db
Having
Provides HAVING clause support for aggregate query filtering
InitDatabase
A utility class for initializing and managing database connections.
Join
Represents a SQL Join operation with flexible configuration options
OrderBy
Handles ORDER BY clause generation with advanced sorting options
Predicate
A class that represents a predicate for querying data in a database.
PredicateGroup
A powerful predicate grouping mechanism for complex WHERE clause construction
Query
A query representation for SQLite database operations.
Sqlite
A SQLite database implementation of the Db interface.
Sqlite3DB
A SQLite database implementation of the Db interface.
Subquery
Advanced subquery support with multiple integration modes
Utils
Utility class providing common functionality for persistent data operations

Enums

CozyEngine Enums
A type of storage engine supported by Cozy persistence library.
HavingType
Defines logical combination type for HAVING clauses
JoinType
Defines the types of SQL joins available in the query builder
OrderDirection
Defines sort direction for OrderBy clauses
PredicateGroupType
Defines the logical grouping type for predicates
PredicateOperator Enums
SubqueryType
Defines the integration mode for subqueries

Extensions

QueryBuilderExtension on CozyQueryBuilder<T>
Query builder extension providing comprehensive SQL query generation

Properties

onChangeDB StreamController<String>
A database interface for persistent data operations.
final