python db-api these elements are illustrated belowthe standard specifies set of functions and objects to be used to connect to database these include the connection functionthe connection object and the cursor object the above elements are described in more detail below the connect function the connection function is defined asconnect(parameters it is used to make the initial connection to the database the connection returns connection object the parameters required by the connection function are database dependent the connection object the connection object is returned by the connect(function the connection object provides several methods includingclose(used to close the connection once you no longer need it the connection will be unusable from this point onwards commit(used to commit pending transaction