Run the database preflight
POST
/v1/setup/database/check
const url = 'http://localhost:8080/v1/setup/database/check';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/setup/database/checkStep 3. Checks database connectivity, dialect and the applied schema scripts and returns the result; the step is marked complete only when the check passes. Administrators only.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
ok
required
boolean
dialect
required
string
schemaScripts
required
integer | string format: int32
readMs
required
integer | string format: int64
writeMs
required
integer | string format: int64
detail
required
string
Examplegenerated
{ "ok": true, "dialect": "example", "schemaScripts": 1, "readMs": 1, "writeMs": 1, "detail": "example"}