Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MinTimescaleVersion = version.Must(version.NewVersion("2.0"))
Functions ¶
func ValidateTimescaleVersion ¶ added in v0.22.0
ValidateTimescaleVersion checks that Timescale plugin version available through pool is not lower than wanted version. In this case it returns nil. Otherwise returns error describing current and desired version or any other error encountered during the check.
Types ¶
type DDLManager ¶
type DDLManager struct {
// contains filtered or unexported fields
}
func NewDDLManager ¶
func NewDDLManager(l hclog.Logger, pool *pgxpool.Pool, cfg *history.Config, dt schema.DialectType) (*DDLManager, error)
func (*DDLManager) AddHistoryFunctions ¶ added in v0.21.1
func (d *DDLManager) AddHistoryFunctions(ctx context.Context) error
func (*DDLManager) Close ¶ added in v0.21.1
func (d *DDLManager) Close()
func (*DDLManager) DropViews ¶ added in v0.21.1
func (d *DDLManager) DropViews(ctx context.Context) error
DropViews drops all hypertable related views. This must be called before any migrations can be run.
func (*DDLManager) SetupHistory ¶
func (d *DDLManager) SetupHistory(ctx context.Context) error
SetupHistory is run after any migrations, finalizing history setup
Click to show internal directories.
Click to hide internal directories.