PostgreSQLDatabase.AppName

From Xojo Documentation

Property (As String )
aPostgreSQLDatabase.AppName = newStringValue
or
StringValue = aPostgreSQLDatabase.AppName

Supported for all project types and targets.

Use this to specify the name of the app that is connected to the PostgreSQL database.

Notes

When using PostgreSQL DB tools that show this name, setting this property makes it easier to know which apps owns the connection.

Example

// db is an existing PostgreSQLDatabase connection
db.AppName = App.ExecutableFile.Name