For the complete documentation index, see llms.txt. This page is also available as Markdown.

SQL Access

SQL Direct Access Settings

Overview

In the DocBits settings module, administrators can directly access the BI database using SQL. This feature is designed for advanced data management and custom reporting needs.

Accessing SQL Direct Access

Navigate to the SQL Direct Access section in the settings module. Here, you will find credentials and access details, including username, password, database name, and host information.

  • Username: user_23f3d6

  • Password: Encrypted

  • Database: demo

  • Host: see in the Screenshot

Example Access Details:

Results of a Sample Query

The following results display the number of documents by their respective status and invoice type:

  • Ready for Validation: 71 Invoices, 6 unspecified

  • Pending Confirmation: 1 unspecified

  • Finished: 3 unspecified, 1 Invoice

  • Error: 2 unspecified

Using clickhouse-client for Terminal Access

For developers preferring terminal usage, access can be established via clickhouse-client:

Example aggregation with SELECT

The following query aggregates existing rows. It does not create a materialized view. Read-only access does not provide the write permissions needed to create one. Adapt table names and conversions to your schema, number format and currency; do not sum different currencies without an explicit conversion.

This example shows how to group total amounts by the week they were created, which is useful for weekly financial summaries or audit trails.

Additional Resources

For further assistance or advanced configurations, please consult our support team or access our comprehensive video training available in the help section.

Last updated

Was this helpful?