RdbStore interfaces to perform basic operations on databases.
This package enables external modules, such as ohos.data.orm,to perform operations
on databases.
| 接口 | 说明 |
|---|---|
| DataObserver |
Represents a data observer.
|
| RdbStore |
Provides methods for managing the relational database (RDB).
|
| Statement |
Provides methods for setting values for precompiled SQL statements and executing precompiled SQL statements.
|
| TransactionObserver |
Provides callback methods that can be called when transactions are started, committed, or rolled back.
|
| 类 | 说明 |
|---|---|
| AbsRdbPredicates |
The abstract super class used to set database operation condition for the relational database (RDB).
|
| DataObservable |
Represents a set of
DataObserver objects that listen for changes of the observed objects. |
| DataObserverAsyncWrapper |
A wrapper class of
DataObserver. |
| RawRdbPredicates |
This is sub-class of RdbPredicates used for relational database.
|
| RdbOpenCallback |
Manages database creation, upgrade, and downgrade.
|
| RdbPredicates |
Represents predicates of the relational database (RDB).
|
| RdbUtils |
Provides static utility methods related to the relational database (RDB).
|
| StoreConfig |
Manages relational database configurations.
|
| StoreConfig.Builder |
Represents a builder of
StoreConfig. |
| ValuesBucket |
Manages buckets used to store a series of values.
|
| 枚举 | 说明 |
|---|---|
| RdbStore.ConflictResolution |
Indicates the type of the method for resolving conflict.
|
| RdbUtils.OperationType |
Describes the database operation type.
|
| StoreConfig.JournalMode |
Describes journal modes of the database.
|
| StoreConfig.StorageMode |
Enumerates the storage modes.
|
| StoreConfig.SyncMode |
Enumerates the database synchronization modes.
|
| 异常错误 | 说明 |
|---|---|
| RdbAbortException |
Represents an exception that occurs if the SQLite database is interrupted.
|
| RdbBusyException |
Represents an exception indicating that the database file is locked.
|
| RdbCantOpenException |
Represents an exception indicating that the SQLite cannot open the database file.
|
| RdbConstraintException |
Represents an exception indicating that the SQL statement violates the constraints of the SQLite.
|
| RdbCorruptException |
Represents an exception indicating that the database file is corrupted.
|
| RdbDoneException |
Represents an exception indicating that the SQLite database operation has ended.
|
| RdbException |
Represents an SQLite exception that indicates an SQL parsing or execution error.
|
| RdbFileLockedException |
Represents an exception indicating that the database file is locked.
|
| RdbFullException |
Represents an exception indicating that the database is full.
|
| RdbInterruptException |
Represents an exception indicating operation interruption.
|
| RdbIoErrException |
Represents an exception indicating that an I/O error occurs when the database file is accessed.
|
| RdbLockedException |
Represents an exception indicating that a table in the database is locked.
|
| RdbMismatchException |
Represents an exception indicating that the data type of an SQL statement does not match that of the database.
|
| RdbMisuseException |
Represents an exception indicating that access to an SQL statement has failed.
|
| RdbNoMemException |
Represents an exception indicating insufficient memory for an SQLite operation.
|
| RdbPermException |
Represents an exception indicating that SQLite has no permission to access the database file
or the directory where the database file is stored.
|
| RdbRangeException |
Represents an exception that occurs if the column index is out of range in bind operations.
|
| RdbReadOnlyException |
Represents an exception indicating that data is written to a read-only database.
|
| RdbTooBigException |
Represents an exception indicating that the maximum number of Blob data records in the database has been exceeded.
|