mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
31 lines
706 B
Go
31 lines
706 B
Go
package steampipeconfig
|
|
|
|
const PostgresNotificationStructVersion = 20230306
|
|
|
|
type PostgresNotificationType int
|
|
|
|
const (
|
|
PgNotificationSchemaUpdate PostgresNotificationType = iota + 1
|
|
)
|
|
|
|
type PostgresNotification struct {
|
|
StructVersion int
|
|
Type PostgresNotificationType
|
|
}
|
|
|
|
type SchemaUpdateNotification struct {
|
|
StructVersion int
|
|
Type PostgresNotificationType
|
|
Update []string
|
|
Delete []string
|
|
}
|
|
|
|
func NewSchemaUpdateNotification(update, delete []string) *SchemaUpdateNotification {
|
|
return &SchemaUpdateNotification{
|
|
StructVersion: PostgresNotificationStructVersion,
|
|
Type: PgNotificationSchemaUpdate,
|
|
Update: update,
|
|
Delete: delete,
|
|
}
|
|
}
|