Documentation ¶
Index ¶
- type Options
- type Postgres
- func (p *Postgres) GetCurrentNumLocks(ctx context.Context) (int, error)
- func (p *Postgres) GetPGTables(ctx context.Context, relations []string) ([]plum.TableState, error)
- func (p *Postgres) GetTrackActivitiesSetting(ctx context.Context) (string, error)
- func (p *Postgres) GetUserTables(ctx context.Context) (plum.Tables, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { DisableSSL bool Host string Port int Database string Username string Password string }
Options for Postgres.
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres is a wrapper around DB pool to Postgres.
func (*Postgres) GetCurrentNumLocks ¶
GetCurrentNumLocks returns the number of locks currently held by the db.
func (*Postgres) GetPGTables ¶
GetPGTables gets the user tables with their current activities and locks.
func (*Postgres) GetTrackActivitiesSetting ¶
GetTrackActivitiesSetting retrieves the "track_activities" Postgres setting.
Click to show internal directories.
Click to hide internal directories.