commit

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHECK_MIGRATION_EXISTS = "SELECT 1 FROM supabase_migrations.schema_migrations LIMIT 1"
	LIST_MIGRATION_VERSION = "SELECT version FROM supabase_migrations.schema_migrations ORDER BY version"
	CREATE_MIGRATION_TABLE = `` /* 137-byte string literal not displayed */

	INSERT_MIGRATION_VERSION = "INSERT INTO supabase_migrations.schema_migrations(version) VALUES($1)"
)

Variables

This section is empty.

Functions

func AssertPostgresVersionMatch added in v0.38.0

func AssertPostgresVersionMatch(conn *pgx.Conn) error

func AssertRemoteInSync added in v0.38.7

func AssertRemoteInSync(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error

func ConnectRemotePostgres added in v0.38.0

func ConnectRemotePostgres(ctx context.Context, username, password, database, host string, options ...func(*pgx.ConnConfig)) (*pgx.Conn, error)

Connnect to remote Postgres with optimised settings. The caller is responsible for closing the connection returned.

func Run

func Run(ctx context.Context, username, password, database string, fsys afero.Fs) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL