createWriter#
- createWriter(databaseName)#
Create a PostgreSQL writer connection to the specified database.
Establishes a database connection with write privileges using predefined writer credentials. The database name must be a stored MATLAB datasource.
- Parameters:
databaseName (
string) – Name of the MATLAB-configured datasource- Returns:
PostgreSQL connection with write access and auto-commit enabled
- Return type:
database.postgre.connection
Example:
conn = createWriter("myDatabase"); pgWrite(conn, "myTable", myData);