Action group: DB General
The action connects to database with set connection parameters.
More details can be found here: Instruction on Connecting to Microsoft SQL Server from Robin Studio
Transaction isolation level - isolation level of access to the database during the execution of transactions.
Login – login to connect to database.
Password – password to connect the database.
DB server URL – the URL of the server where the database is located.
Driver class full name – driver class full name for the set database.
The driver classpath for the specified database - the driver classpath for the specified database.
Timeout - Time limit for connection creation to database.
As a result, we get connection context to the selected database.
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Transaction isolation level | Isolation level of access to the database during the execution of transactions. Dropdown list: No transactions, Read uncommiеted, Read committed, Repeatable read, Serializable | Robin.String | No | |
Login | Login to connect the database | Robin.String | No | |
Password | Password to connect the database | Robin.Object | No | |
DB server URL | The URL of the server where the database is located. Examples: jdbc: h2: mem: h2inmem; jdbc: sqlite: C: Users User1 test.db | Robin.String | Yes | |
Driver class full name | Driver class full name | Robin.String | Yes | |
The driver classpath for the specified database | The driver classpath for the specified database | Robin.FilePath | Yes | |
Timeout | Time limit for connection creation. Further it is used as the maximum waiting time for the execution of requests in the connection. The default is 60 s. May depend on driver implementation. | Robin.Numeric | No | |
Results | ||||
DB context | Connection context to the selected database | Robin.DbContext | Database context |
The difference between a custom connection and a standard connection is that with the standard connection you can connect to only one of four available databases (Oracle, MySql, PostgreSql,MsSqlServer), with the custom connection you can connect to any database for which the jdbc-driver is installed.
Connect to database and execute statement.
SELECT * FROM Table1
ORDER BY id ASC;
Use the "Connect custom Db", " Execute Sql Statement" actions.
The program robot completed successfully. The statement was executed.