golang.org/x/pkgsite/internal/postgres.DB.db (field)

79 uses

	golang.org/x/pkgsite/internal/postgres (current package)
		clean.go#L60: 	err = db.db.RunQuery(ctx, query, func(rows *sql.Rows) error {
		clean.go#L97: 	err = db.db.RunQuery(ctx, `
		delete.go#L20: 	return db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		details.go#L62: 	if err := db.db.RunQuery(ctx, query, collect, seriesPath); err != nil {
		details.go#L99: 	return collectStrings(ctx, db.db, query, pkgPath, modulePath, limit)
		details.go#L118: 	err = db.db.QueryRow(ctx, query, pkgPath).Scan(&n)
		details.go#L148: 	row := db.db.QueryRow(ctx, query, modulePath, resolvedVersion)
		excluded.go#L46: 	_, err = db.db.Exec(ctx, "INSERT INTO excluded_prefixes (prefix, created_by, reason) VALUES ($1, $2, $3)",
		excluded.go#L56: 	return getExcludedPrefixes(ctx, db.db)
		insert_module.go#L85: 	err = db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
		insert_module.go#L94: 	err = db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
		insert_module.go#L622: 	return db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
		insert_module.go#L848: 	return db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		licenses.go#L48: 	rows, err := db.db.Query(ctx, query, unitID)
		licenses.go#L96: 	rows, err := db.db.Query(ctx, query, moduleID)
		path.go#L39: 	err = db.db.RunQuery(ctx, q, func(rows *sql.Rows) error {
		postgres.go#L21: 	db                 *database.DB
		postgres.go#L57: 		db:                 db,
		postgres.go#L67: 	return db.db.Close()
		postgres.go#L72: 	return db.db
		postgres.go#L89: 	err := db.db.QueryRow(ctx, `
		requeue.go#L55: 	affected, err := db.db.Exec(ctx, query, appVersion)
		requeue.go#L90: 	affected, err := db.db.Exec(ctx, query, appVersion)
		requeue.go#L107: 	affected, err := db.db.Exec(ctx, query, appVersion, derrors.ToReprocessStatus(status), status)
		requeue.go#L158: 	if err := db.db.RunQuery(ctx, query, collect, limit); err != nil {
		search.go#L284: 	err := db.db.RunQuery(ctx, query, collect, q, limit, offset)
		search.go#L320: 	err := db.db.RunQuery(ctx, query, collect, searchQuery, limit, offset, nonRedistributablePenalty, noGoModPenalty)
		search.go#L405: 	err := db.db.RunQuery(ctx, query, collect, q, limit, offset)
		search.go#L492: 	return db.db.RunQuery(ctx, query, collect)
		search.go#L732: 	if err := db.db.RunQuery(ctx, query, collect, before, limit); err != nil {
		search.go#L756: 	err = db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		search.go#L774: 	err = db.db.RunQuery(ctx, `SELECT package_path FROM search_documents`, func(rows *sql.Rows) error {
		search.go#L794: 	rows, err := db.db.Query(ctx, `
		search.go#L1021: 	return db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		search.go#L1063: 	if err := UpsertSearchDocument(ctx, db.db, args); err != nil {
		search.go#L1066: 	_, err = db.db.Exec(ctx,
		stdlib.go#L42: 	return collectStrings(ctx, db.db, q, stdlib.ModulePath, suffix)
		symbol_history.go#L30: 		return GetSymbolHistoryFromTable(ctx, db.db, packagePath, modulePath)
		symbol_history.go#L33: 		return GetSymbolHistoryFromTable(ctx, db.db, packagePath, modulePath)
		symbol_history.go#L35: 	return GetSymbolHistoryWithPackageSymbols(ctx, db.db, packagePath, modulePath)
		test_helper.go#L110: 	if err := db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		test_helper.go#L326: 	row := db.db.QueryRow(ctx, `
		unit.go#L97: 	err = db.db.QueryRow(ctx, q, args...).Scan(
		unit.go#L172: 		allVersions, err := collectStrings(ctx, db.db, q, args...)
		unit.go#L232: 	err = db.db.QueryRow(ctx, q, args...).Scan(&modulePath, &latestVersion)
		unit.go#L304: 	err = db.db.QueryRow(ctx, query, fullPath, modulePath, resolvedVersion).Scan(&unitID)
		unit.go#L319: 	return collectStrings(ctx, db.db, `
		unit.go#L328: 	return getPackagesInUnit(ctx, db.db, fullPath, "", "", moduleID, db.bypassLicenseCheck)
		unit.go#L432: 	err = db.db.RunQuery(ctx, `
		unit.go#L510: 	err = db.db.QueryRow(ctx, query, um.Path, unitID, goos, goarch).Scan(
		unit.go#L542: 			u.SymbolHistory, err = GetSymbolHistoryForBuildContext(ctx, db.db, pathID, um.ModulePath, bcMatched)
		unit.go#L552: 			u.SymbolHistory, err = GetSymbolHistoryForBuildContext(ctx, db.db, pathID, um.ModulePath, bcMatched)
		unit.go#L558: 		sh, err := GetSymbolHistoryWithPackageSymbols(ctx, db.db, um.Path,
		unit.go#L621: 	if err := db.db.RunQuery(ctx, query, collect, modulePath, resolvedVersion); err != nil {
		unit.go#L629: 	return getModuleReadme(ctx, db.db, modulePath, resolvedVersion)
		version.go#L95: 	if err := db.db.RunQuery(ctx, query, collect, path); err != nil {
		version.go#L226: 	err = db.db.RunQuery(ctx, q, func(rows *sql.Rows) error {
		version.go#L259: 	row := db.db.QueryRow(ctx, `
		version.go#L294: 		err := db.db.QueryRow(ctx, `
		version.go#L312: 	err = db.db.QueryRow(ctx, `
		version.go#L349: 	err = db.db.RunQuery(ctx, `
		version.go#L409: 	lmv, _, err := getLatestModuleVersions(ctx, db.db, modulePath)
		version.go#L464: 	err = db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
		version.go#L514: 	return db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
		version_map.go#L26: 		if err := db.db.QueryRow(ctx, `SELECT id FROM modules WHERE module_path=$1 AND version=$2`,
		version_map.go#L36: 	_, err = db.db.Exec(ctx,
		version_map.go#L84: 	err = db.db.QueryRow(ctx, q, args...).Scan(
		version_map.go#L125: 	if err := db.db.RunQuery(ctx, q, collect, args...); err != nil {
		versionstate.go#L40: 	return db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		versionstate.go#L72: 	return db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
		versionstate.go#L173: 	_, err = db.db.Exec(ctx, query, modulePath, version, status, error)
		versionstate.go#L219: 	row := db.db.QueryRow(ctx, query)
		versionstate.go#L278: 	rows, err := db.db.Query(ctx, query, args...)
		versionstate.go#L336: 	row := db.db.QueryRow(ctx, query, modulePath, resolvedVersion)
		versionstate.go#L376: 	if err := db.db.RunQuery(ctx, query, collect, modulePath, resolvedVersion); err != nil {
		versionstate.go#L402: 	err = db.db.QueryRow(ctx, query, pkgPath, modulePath, resolvedVersion).Scan(
		versionstate.go#L440: 	err = db.db.RunQuery(ctx, query, func(rows *sql.Rows) error {
		versionstate.go#L470: 	err = db.db.QueryRow(ctx, `
		versionstate.go#L490: 	err = db.db.QueryRow(ctx, `