The basic request information of a Java Database Connectivity (JDBC) API includes the database type, test URL, and SQL statements. This topic describes how to configure the basic request information of a JDBC API.
Procedure
Log on to the PTS console, choose , and then click PTS.
Delete the default HTTP API and add a JDBC API.
Configure the basic request Information of the JDBC API. For more information, see Basic request information.
Parameters
Parameter
Description
Example
API Name
The name that specifies the service definition of the API. The name can be up to 20 characters in length.
API-1
Database Type
The database type. Valid values: MySQL, PostgreSQL, MariaDB, and SQL Server.
MySQL
Database URL
The information of the database connection, including the host, port, and database name.
<host>:<port>/<database_name>
Username
The username that is used to log on to databases.
username
Password
The password that is used to log on to databases.
password
SQL
The SQL statement that you want to execute. The SQL statement must start with
SELECT
,UPDATE
,INSERT
, orDELETE
(case-insensitive).select * from test_users;
Timeout Duration
The maximum amount of time for which PTS waits for a response from the tested server.
Unit: milliseconds.
5000
limit
The maximum number of rows read from the result set (only for SQL statements that start with the word "SELECT"). A maximum of 1,000,000 rows can be read from the result set.
1000