getSchema()
Description
Get a table schema in JSON format.
Request
Parameters
Field
Required
Data Type
Description
Options Object Parameters
Field
Required
Data Type
Description
table
string
Table name
database
default
Currently accepts only "default" value, but with multiple databases per project feature coming soon, it will be accepting the name of the database to extract the configs from. Default: "default"
format
default
| formatted
Specify the format of how the database schema is to be returned.
formatted
- will return a JSON with JS native datatypes and indication which columns are optional/required. Default: "default"
Example
Response
An object containing the data schema of a given table.
Example
default
formatted
Last updated