GET DATABASE

Syntax

GET DATABASE [key]

Privileges

HOSTADMIN

Description

Use this command to retrieve information about the currently used database. key parameter can be ID, SIZE, and NAME (default if key is not specified).

Return

An Integer if key is ID or SIZE. A String if key is NAME.

Example

> GET DATABASE ID
9

> GET DATABASE SIZE
921600

> GET DATABASE NAME
mediastore.sqlite

> GET DATABASE
mediastore.sqlite