Information and management operations for the given database.
| Methods |
| int |
getCacheSize()
The current cache size in KB.
|
| int |
getCacheSize()
The current cache size in KB.
Returns:
the current size
|
| int |
getCacheSizeMax()
The maximum cache size in KB.
|
| int |
getCacheSizeMax()
The maximum cache size in KB.
Returns:
the maximum size
|
| long |
getFileReadCount()
The file read count since the database was opened.
|
| long |
getFileReadCount()
The file read count since the database was opened.
Returns:
the read count
|
| long |
getFileSize()
The database file size in KB.
|
| long |
getFileSize()
The database file size in KB.
Returns:
the number of pages
|
| long |
getFileWriteCount()
The number of write operations since the database was opened.
|
| long |
getFileWriteCount()
The number of write operations since the database was opened.
Returns:
the write count
|
| long |
getFileWriteCountTotal()
The number of write operations since the database was created.
|
| long |
getFileWriteCountTotal()
The number of write operations since the database was created.
Returns:
the total write count
|
| int |
getLogMode()
The transaction log mode (0 disabled, 1 without sync, 2 enabled).
|
| int |
getLogMode()
The transaction log mode (0 disabled, 1 without sync, 2 enabled).
Returns:
the transaction log mode
|
| String |
getMode()
The database compatibility mode (REGULAR if no compatibility mode is
used).
|
| String |
getMode()
The database compatibility mode (REGULAR if no compatibility mode is
used).
Returns:
the database mode
|
| int |
getTraceLevel()
The trace level (0 disabled, 1 error, 2 info, 3 debug).
|
| int |
getTraceLevel()
The trace level (0 disabled, 1 error, 2 info, 3 debug).
Returns:
the level
|
| String |
getVersion()
The database version.
|
| String |
getVersion()
The database version.
Returns:
the version
|
| boolean |
isExclusive()
Is the database open in exclusive mode?
|
| boolean |
isExclusive()
Is the database open in exclusive mode?
Returns:
true if the database is open in exclusive mode, false otherwise
|
| boolean |
isMultiThreaded()
Is multi-threading enabled?
|
| boolean |
isMultiThreaded()
Is multi-threading enabled?
Returns:
true if multi-threading is enabled, false otherwise
|
| boolean |
isMvcc()
Is MVCC (multi version concurrency) enabled?
|
| boolean |
isMvcc()
Is MVCC (multi version concurrency) enabled?
Returns:
true if MVCC is enabled, false otherwise
|
| boolean |
isReadOnly()
Is the database read-only?
|
| boolean |
isReadOnly()
Is the database read-only?
Returns:
true if the database is read-only, false otherwise
|
| String |
listSessions()
List sessions, including the queries that are in
progress, and locked tables.
|
| String |
listSessions()
List sessions, including the queries that are in
progress, and locked tables.
Returns:
information about the sessions
|
| String |
listSettings()
List the database settings.
|
| String |
listSettings()
List the database settings.
Returns:
the database settings
|
| void |
setCacheSizeMax(int kb)
Change the maximum size.
|
| void |
setCacheSizeMax(int kb)
Change the maximum size.
Parameters:
kb - the cache size in KB.
|
| void |
setLogMode(int value)
Set the transaction log mode.
|
| void |
setLogMode(int value)
Set the transaction log mode.
Parameters:
value - the new log mode
|
| void |
setTraceLevel(int level)
Set the trace level.
|
| void |
setTraceLevel(int level)
Set the trace level.
Parameters:
level - the new value
|