DB Engine | Qntrl | Bridge | Online Help | Execute SQL query in a database

DB Engine

DB Engine is used to connect with the database in the client's machine or client's network and perform READ/INSERT/UPDATE operations in the database. The DB Engine configured in Bridge can be utilized in the following two distinct modules within Qntrl.

  1. DB Lookup field - Establishes a connection with the customer's database, executes queries, and presents the response in a dropdown or multi-select field within Qntrl. Check DB Lookup for more details.
  2. Circuit - In the Circuit workflow, DB Engine states to establish a connection with the client's database executes the defined query, and performs a task. Check DB Task for more details. 


Prerequisite
While creating Credentials for DB Engine, choose the Credential type as JDBCClick here to learn how to create a Credential.

Request data  

{
   "task_name": "db_task",
   "credential": {
         "name": "<CREDENTIAL_NAME>"
   },
   "task_details": {
         "database": "<DATABASE_NAME>",
         "db_query": "<SELECT NAME FROM <table>>",
         "port": 3306,
         "query_timeout": 10000,
         "host": "<HOST_NAME>",
         "sql_type": 1   
   }
}


Where,
Keys
Description

 task_name

 

  A system-defined name for the respective module.
  1.     'db_task' - task name for SELECT operations.
  2.     'db_dml_task' - task name for INSERT/UPDATE operations
 credential  A JSON object that contains details of the JDBC credential.
 name  Name of the DB credential.
 task_details  A JSON object that contains details of the DB task.
 database  Name of the client database.
 db_query  DB query to be executed (SELECT/INSERT/UPDATE).
 portThe port used by the DB, by default, MySQL runs in port 3306, SQL Server in 1433, and PostgreSQL in 5432. If your database runs on a different port number, update this field accordingly.
 query_timeout
 (optional)
 Time to wait for an SQL request to complete.
 host Host name of the machine in which DB resides.
 sql_type The database used. For MySQL - 1, for SQLServer - 3, for PostgreSQL - 4
 allow_multiple_columns
 (optional)
  Specifies the columns in SQL Query to be considered for data retrieval.   
  1. 'true' - retrieves the data of all the columns listed in the SQL query
  2. 'false' - retrieves only the values of the first column in the Select column list of SQL query
  If not specified it takes the default value as 'false'.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • Task Engine

                                                                                                        In Qntrl, while public APIs can be configured and executed directly through Webhooks, the client's internal APIs that are exposed only to the local network can be executed using the Task Engine module in Bridge. The Task Engine configured in Bridge ...
                                                                                                      • SSH Engine

                                                                                                        SSH Engine module in Bridge is used to perform actions in clients network/client's machine by executing a command/script in Linux/UNIX OS. Prerequisite While creating Credentials for SSH Engine, choose the Credential type as SSH. Click here to learn ...
                                                                                                      • PowerShell Engine

                                                                                                        In Bridge, the PowerShell Engine module is used to perform actions in any Windows machines in the client's network using PowerShell script. Prerequisite While creating Credentials, select the type Powershell and provide the User Name and Password of ...
                                                                                                      • DB Engine

                                                                                                        DB Engine state enables a connection with the database hosted on a private or local network and executes the defined SQL query in the database. Prerequisite An active Bridge agent. Refer here to install and configure Bridge. Create the necessary ...
                                                                                                      • Task Engine

                                                                                                        Circuit's Task Engine state is used to connect with other applications and access APIs from a closed space. To retrieve data from a private network, the required API must be accessed from the local machine's network for the required conditions. ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources