Files
steampipe/pkg/steampipeconfig/postgres_notification.go
kaidaguerre b0b2c62338 Add support for 'import_schema' property in connection config, controlling whether to create a postgres schema for a steampipe connection. Closes #3407
Rename 'connection_state' table to 'steampipe_connection_state'. #3403
Rename 'internal' table to 'steampipe_internal
Remove 'Connection' property from ConnectionState
2023-05-15 13:07:36 +01:00

27 lines
607 B
Go

package steampipeconfig
const PostgresNotificationStructVersion = 20230306
type PostgresNotificationType int
const (
PgNotificationSchemaUpdate PostgresNotificationType = iota + 1
)
type PostgresNotification struct {
StructVersion int
Type PostgresNotificationType
}
type SteampipeNotification struct {
StructVersion int
Type PostgresNotificationType
}
func NewSchemaUpdateNotification(notificationType PostgresNotificationType) *SteampipeNotification {
return &SteampipeNotification{
StructVersion: PostgresNotificationStructVersion,
Type: notificationType,
}
}