scriptrefs

package
v1.153.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package scriptrefs finds the saved scripts that name an application database's table or column (#2405): the lookup a migration's rename is checked against before it saves. It reads each candidate's source for the connection's name and the object's name in its strings, so a script that runs SQL naming the column, or reads a row by its key, is found.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(db *sql.DB) postgreskit.ScriptReferences

Lookup is the lookup a migration's rename is checked against: for each name, the saved scripts whose source names the connection in a string and the name as a word in a string -- the SQL the script runs, or the key it reads a row's column by. Endpoints are scripts, so a bound endpoint is found as its script.

Types

This section is empty.

Jump to

Keyboard shortcuts

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