All available information about each table is listed.
Request examples
Minimal
{
"action": "listTables",
"params": {},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Filter by partial table name
{
"api": "db",
"apiVersion": "1.0",
"requestId": "2",
"action": "listTables",
"params": {
"databaseName": "ctreeSQL",
"partialTableName": "a"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Filter by list table names
{
"api": "db",
"apiVersion": "1.0",
"requestId": "3",
"action": "listTables",
"params": {
"databaseName": "ctreeSQL",
"tableNames": [
"athlete",
"test1"
]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Paginate
{
"api": "db",
"apiVersion": "1.0",
"requestId": "4",
"action": "listTables",
"params": {
"databaseName": "ctreeSQL",
"ownerName": "admin",
"skipRecords": 1,
"maxRecords": 3,
"includeSystemTables": false
},
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"result": {
"dataFormat": "objects",
"data": [
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": "./ctreeSQL.dbs",
"tableName": "all_types",
"totalRecordCount": -1,
"uid": 1189
},
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "athlete",
"totalRecordCount": -1,
"uid": 1185
},
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "test1",
"totalRecordCount": -1,
"uid": 1181
}
]
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Filter by partial table name
{
"result": {
"dataFormat": "objects",
"data": [
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": "./ctreeSQL.dbs",
"tableName": "all_types",
"totalRecordCount": -1,
"uid": 1189
},
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "athlete",
"totalRecordCount": -1,
"uid": 1185
}
]
},
"requestId": "2",
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Filter by list table names
{
"result": {
"dataFormat": "objects",
"data": [
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "athlete",
"totalRecordCount": -1,
"uid": 1185
},
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "test1",
"totalRecordCount": -1,
"uid": 1181
}
]
},
"requestId": "3",
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Paginate
{
"result": {
"dataFormat": "objects",
"data": [
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "athlete",
"totalRecordCount": -1,
"uid": 1185
},
{
"databaseName": "ctreeSQL",
"ownerName": "admin",
"path": ".\\ctreeSQL.dbs",
"tableName": "test1",
"totalRecordCount": -1,
"uid": 1181
}
]
},
"requestId": "4",
"debugInfo": {
"request": {
"api": "db",
"action": "listTables",
"params": {
"databaseName": "ctreeSQL",
"ownerName": "admin",
"skipRecords": 1,
"maxRecords": 3,
"includeSystemTables": false
},
"apiVersion": "1.0",
"requestId": "4",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
},
"serverSuppliedValues": {
"databaseName": "ctreeSQL",
"ownerName": "admin"
},
"errorData": {
"errorData": null
},
"warnings": []
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
databaseName |
The You specify this property when you want to use a different database instead of the default. This property is useful because objects, such as tables and code packages, can have the same name in multiple databases. This feature allows you to create multiple environments in the same server and reuse the same JSON actions in each environment. For example, you can create It is an error to set If no default database is specified during |
Defaults to the session's "defaultDatabaseName" property |
string | 1 to 64 bytes |
ownerName |
The You specify this property when you want to use a different account instead of the default. Your session's account must have the appropriate privileges to access the code package. This property is useful because objects, such as tables and code packages, can have the same name in the same database as long as different accounts own each object. This feature allows you to create duplicate objects for different users on the same server and reuse the same JSON actions on those objects. For example, an administrator can copy objects from a production environment to her account so she can troubleshoot an issue using the same JSON actions, JavaScript, and SQL code. It is an error to set If no default owner is specified during |
Optional with default of the session's "defaultOwnerName" property |
string | 1 to 64 bytes |
skipRecords |
The "skipRecords" property specifies the number of records to skip over when paginating the results. It is used with "maxRecords" to paginate the results. If the value is not null or omitted, the server returns results from the beginning. If it is > 0, the server skips over the specified number of records and returns results starting from that point up until it returns the maximum number of results as defined by "maxRecords". |
Optional with default of 0
|
integer |
0 to 9223372036854775807
|
maxRecords |
The "maxRecords" property specifies the maximum number of records to be returned. It is used with "skipRecords" to paginate the results. If the value is not null or omitted, the server returns the maximum number of results specified by "maxRecords". |
Optional with default of 20 |
integer |
-1 to 65535
|
includeSystemTables |
The
Example "params": {
"includeSystemTables": true
} |
Optional with default of false
|
Boolean |
|
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
dataFormat |
The
|
string |
|
data |
The |
array of objects | The action determines its contents. |
|
data .databaseName |
The
|
string | 1 to 64 bytes |
|
data .ownerName |
The You specify this property when you want to use a different account instead of the default. Your session's account must have the appropriate privileges to access the code package. This property is useful because objects, such as tables and code packages, can have the same name in the same database as long as different accounts own each object. This feature allows you to create duplicate objects for different users on the same server and reuse the same JSON actions on those objects. For example, an administrator can copy objects from a production environment to her account so she can troubleshoot an issue using the same JSON actions, JavaScript, and SQL code. It is an error to set If no default owner is specified during |
string | 1 to 64 bytes |
|
data .path |
The "path" property identifies the path of the database folder. For more details, see "path". |
string | 0 to 2,048 bytes |
|
data .tableName |
The See table name in System specifications for the table naming requirements and limitations. |
string | 1 to 64 bytes |
|
data .totalRecordCount |
The
|
integer |
|