Maptitude GISDK Help

PostgreSQLCommand Class

Summary

 

Provides methods for asynchronous Postgres queries,

 

Constructor

PostgreSQLCommand( PostgreSQLConnect conn)

 

Parameter

Type

Contents

conn

object

A PostgreSQLConnect connection object

 

Methods

 

ExecuteQuery( string qry)

Executes a query.

 

Parameter

Type

Contents

qry

String

A valid SQL statement

 

 

ExecuteQueryWithProgressBar( string qry, array options)

Executes a query asynchronously and shows a progress bar.

 

Parameter

Type

Contents

qry

String

A valid SQL statement

 

Options

 

Option Name

Type

Contents

ProgressMessage

String

The message to show in the progress bar

TimeEstimateInMinutes

Integer

The number of minutes the query is estimated to take (defaults to 10 minutes)

TimerIntervalInSeconds

Integer

How often the progress bar should update, in seconds (defaults to 2 seconds)

NoProgressCancel

Boolean

If the progress bar should not offer a Cancel button (defaults to False)

NoProgressBar

Boolean

If the progress bar should not be shown at all (default to False)

 

Notes

 

ExecuteReaderWithProgressBar( string qry, array options)

Executes a query asynchronously and shows a progress bar.

 

Parameter

Type

Contents

qry

String

A valid SQL statement

 

Options

 

Option Name

Type

Contents

ProgressMessage

String

The message to show in the progress bar

TimeEstimateInMinutes

Integer

The number of minutes the query is estimated to take (defaults to 10 minutes)

TimerIntervalInSeconds

Integer

How often the progress bar should update, in seconds (defaults to 2 seconds)

NoProgressCancel

Boolean

If the progress bar should not offer a Cancel button (defaults to False)

NoProgressBar

Boolean

If the progress bar should not be shown at all (default to False)

 

Notes

     See notes under ExceuteReaderWithProgressBar()

 

 

ExecuteQueryAsync( string qry, array options)

Executes a query asynchronously employing a user-defined callback macro.

 

Parameter

Type

Contents

qry

String

A valid SQL statement

 

Options

 

Option Name

Type

Contents

TimerIntervalInSeconds

Integer

How often the timer to check whether the query is complete gets called

Callback

String

The name of a macro to call when the query is complete

CallbackAction

String

A Macro Block to execute when the action is complete

CallbackValue

Value

A macro value of any type to pass to the callback

 

Notes

 

AsyncQueryCancel()

Stops the execution of an asynchronous query.

 

 

See Also:

AddLayerDB

AddTables

Calculate Tables

Caliper.Charts

CC.ModifyTableOperations

CC.Table

Clustering

Data.Finder

Data.Geocoder

PostgreSQLConnect

PostgreSQLCommand

Routing.Bands

Routing.Path

Routing.Router

Table

Utilities.Mail

©2025 Caliper Corporation www.caliper.com