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.