* docs changes for the upcoming single docker image * Updated env variables * minor formatting * add minor refinements * [docs] updated cloud-run and azure-container * few corrections in deployment docs * Add postgrest to google cloud run doc * Formating redis content * Formating * Formating * Formating * correction in the explaining redis * updated version * deprecating ToolJet client deployment doc * deprecating ToolJet client deployment from beta version --------- Co-authored-by: rudrapratik30 <pratik104agrawal@gmail.com> Co-authored-by: Karan Rathod <karan.altcampus@gmail.com> Co-authored-by: Souvik <psouvik260@gmail.com>
4.3 KiB
| id | title |
|---|---|
| tooljet-database | Overview |
Use the ToolJet-hosted database to build apps faster, and manage your data with ease. ToolJet database require no setup and gives you a powerful user interface for managing your data.
Enabling the ToolJet Database for your instance
Requires:
- PostgREST server
- Additional configuration for ToolJet server
This feature is only enabled if ENABLE_TOOLJET_DB is set to true.
PostgREST Server
PostgREST is a standalone web server that turns your PostgreSQL database directly into queryable RESTful APIs which is utilized for Tooljet Database. This server only communicates with the ToolJet server and therefore does not need to be publicly exposed.
:::tip
If you have openssl installed, you can run the
command openssl rand -hex 32 to generate the value for PGRST_JWT_SECRET.
If this parameter is not specified, then PostgREST refuses authentication requests. :::
| <div style={{ width:"100px"}}> Variable | <div style={{ width:"100px"}}> Description |
|---|---|
| PGRST_JWT_SECRET | JWT token client provided for authentication |
| PGRST_DB_URI | database connection string for tooljet database |
| PGRST_LOG_LEVEL | info |
:::info
Please make sure that DB_URI is given in the format postgres://[USERNAME]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]
:::
Additional ToolJet server configuration
| <div style={{ width:"100px"}}> Variable | <div style={{ width:"100px"}}> Description |
|---|---|
| ENABLE_TOOLJET_DB | true or false |
| TOOLJET_DB | Default value is tooljet_db |
| TOOLJET_DB_HOST | database host |
| TOOLJET_DB_USER | database username |
| TOOLJET_DB_PASS | database password |
| TOOLJET_DB_PORT | database port |
| PGRST_JWT_SECRET | JWT token client provided for authentication |
| PGRST_HOST | postgrest database host |
If you intend to make changes in the above configuration. Please refer PostgREST configuration docs.
:::tip
When this feature is enabled, the database name provided for TOOLJET_DB will be utilized to create a new database during server boot process in all of our production deploy setups.
In case you want to trigger it manually, use the command npm run db:create on ToolJet server.
:::
Features
ToolJet database allows you to:
- Maintain tables of data in a secure database that's only accessible within your ToolJet organization.
- Edit, search, filter, sort, and filter data using a spreadsheet-like interface.
- Quickly build applications and write queries to interact with the ToolJet Database, just like any other datasource but without any setup.
- Export schema from the ToolJet Database to a JSON file.
Accessing ToolJet Database
Once you log-in to your ToolJet account, from the left sidebar of the dashboard you can navigate to ToolJet Database.
The ToolJet Database is available on: ToolJet Cloud, Self-Host, and Enterprise Edition. You can manage your database and its data using the Database editor UI.