Maptitude GISDK Help |
Runs an SQL query on the open PGSQL database connection.
PGSQLExportFromQuery(string qry, string name, string filename, string type)
Argument |
Type |
Contents |
qry |
string |
SQL query to be run |
name |
string |
Name of dataview |
filename |
string |
Name of file to which results are written |
type |
string |
Type of data format, e.g. in-memory, csv, database, etc. |
result = PGSQLExportFromQuery(“SELECT column_name FROM table_name”, “dataview1”, “dataview1”, “MEM”, )
Error Type |
Meaning |
Error |
View name is null; or either filename or type (or both) is null; or type is not a valid type; or query fails to retrieve a result |
Function |
Summary |
Add layer to map after exporting it to PGSQL spatial database |
|
Add layer to current workspace after exporting it to PGSQL spatial database |
|
Export map data to PGSQL spatial database |
|
Close the connection with PostgreSQL, if it exists |
|
Establish a connection with PostgreSQL |
|
Run an SQL query on the open PGSQL database connection and export results to a file |
|
Retrieve a list of PGSQL databases from the connected database server |
|
Retrieve a list of schemas from a PGSQL database |
|
Retrieve a list of PGSQL spatial databases from the connected database server |
|
Retrieve a list of tables from a PGSQL database |
|
Returns all unique fields from the PGSQL database table, as defined in the table constraints |
|
Run an SQL query on the open PGSQL database connection |
|
Set database as the current selection in the “Open PostgreSQL Table” dialogue box |
|
Set the name of the database schema to be displayed to the user in the “Open PostgreSQL Table” dialogue box |
|
Set the name of the table to be displayed to the user in the “Open PostgreSQL Table” dialogue box |
©2025 Caliper Corporation | www.caliper.com |