check-safety/testdata/pluginrules/weather-fail/db/forecast_signups.sql.go
Alex Dunmow 1a8347a9e5 Add plugin route, output, form, log and egress rules (checks 33 to 37)
Generated plugins (acceptance.json at the root) fail on: HTTP routes not
registered through pluginsdk route or a public route reading personal
columns; HTML built from unescaped non-constant strings; public POSTs
outside route.Form; personal data names in log calls; outbound requests
carrying personal data or values the spec does not send to that host.
First-party plugins get the same findings as warnings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:26:33 +08:00

23 lines
595 B
Go

// Code generated by sqlc. DO NOT EDIT.
// source: forecast_signups.sql
package db
import "context"
const latestForecastSignup = `-- name: LatestForecastSignup :one
SELECT id, email, address FROM forecast_signups ORDER BY created_at DESC LIMIT 1
`
type ForecastSignup struct {
ID string `json:"id"`
Email string `json:"email"`
Address string `json:"address"`
}
func (q *Queries) LatestForecastSignup(ctx context.Context) (ForecastSignup, error) {
row := q.db.QueryRow(ctx, latestForecastSignup)
var i ForecastSignup
err := row.Scan(&i.ID, &i.Email, &i.Address)
return i, err
}