Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemovePsqlMetaCommands ¶ added in v1.31.0
RemovePsqlMetaCommands strips psql meta-command lines (e.g. `\restrict KEY`, `\unrestrict KEY`, `\connect foo`) from SQL input. These are emitted by pg_dump but are not valid SQL, so they must be removed before parsing.
func RemoveRollbackStatements ¶
Remove all lines after a rollback comment.
goose: -- +goose Down sql-migrate: -- +migrate Down tern: ---- create above / drop below ---- dbmate: -- migrate:down
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.