scriptrefs

package
v1.169.1 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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