1
1
mirror of https://github.com/wader/fq.git synced 2024-12-02 12:45:53 +03:00
fq/format/postgres/common/common.go

36 lines
757 B
Go
Raw Normal View History

2022-07-20 19:25:07 +03:00
package common
import "github.com/wader/fq/pkg/scalar"
//typedef enum DBState
//{
// DB_STARTUP = 0,
// DB_SHUTDOWNED,
// DB_SHUTDOWNED_IN_RECOVERY,
// DB_SHUTDOWNING,
// DB_IN_CRASH_RECOVERY,
// DB_IN_ARCHIVE_RECOVERY,
// DB_IN_PRODUCTION
//} DBState;
var DBState = scalar.UToScalar{
0: {Sym: "DB_STARTUP"},
1: {Sym: "DB_SHUTDOWNED"},
2: {Sym: "DB_SHUTDOWNED_IN_RECOVERY"},
3: {Sym: "DB_SHUTDOWNING"},
4: {Sym: "DB_IN_CRASH_RECOVERY"},
5: {Sym: "DB_IN_ARCHIVE_RECOVERY"},
6: {Sym: "DB_IN_PRODUCTION"},
}
2022-07-20 19:49:47 +03:00
//typedef enum WalLevel
//{
// WAL_LEVEL_MINIMAL = 0,
// WAL_LEVEL_REPLICA,
// WAL_LEVEL_LOGICAL
//} WalLevel;
var WalLevel = scalar.SToScalar{
0: {Sym: "WAL_LEVEL_MINIMAL"},
1: {Sym: "WAL_LEVEL_REPLICA"},
2: {Sym: "WAL_LEVEL_LOGICAL"},
}