Establishes a JDBC connection.
Drops a table from the JDBC database.
Returns a PreparedStatement that inserts a row into table via conn.
Saves a partition of a DataFrame to the JDBC database.
Saves a partition of a DataFrame to the JDBC database. This is done in a single database transaction in order to avoid repeatedly inserting data as much as possible.
It is still theoretically possible for rows in a DataFrame to be inserted into the database more than once if a stage somehow fails after the commit occurs but before the stage can return successfully.
This is not a closure inside saveTable() because apparently cosmetic implementation changes elsewhere might easily render such a closure non-Serializable. Instead, we explicitly close over all variables that are used.
Saves the RDD to the database in a single transaction.
Compute the schema string for this RDD.
Returns true if the table already exists in the JDBC database.
Util functions for JDBC tables.