Web Scrapers Generator BrowserExt

dbclose

Closes the database connection.

dbclose(connection)
    

Parameters:

connection Connection ID established by dbconnect.

This function can not be executed in the "Editor".

Example 1. Lets suppose that there is products table in the test database, containing id, t, d and p columns. At the first place we form the table from the returned data, then we will search for every row in the database. If we don't find a record with the relevant data, then insert a new record to the database.