golang.org/x/pkgsite/internal/database.DB.Exec (method)

31 uses

	golang.org/x/pkgsite/internal/database (current package)
		database.go#L89: func (db *DB) Exec(ctx context.Context, query string, args ...interface{}) (_ int64, err error) {
		database.go#L473: 		if _, err := db.Exec(ctx, query, args...); err != nil {

	golang.org/x/pkgsite/internal/postgres
		delete.go#L29: 		_, err = tx.Exec(ctx, `DELETE FROM version_map WHERE module_path = $1 AND resolved_version = ANY($2)`,
		excluded.go#L46: 	_, err = db.db.Exec(ctx, "INSERT INTO excluded_prefixes (prefix, created_by, reason) VALUES ($1, $2, $3)",
		insert_module.go#L306: 	if _, err := tx.Exec(ctx,
		insert_module.go#L707: 		if _, err := tx.Exec(ctx, `DELETE FROM imports_unique WHERE from_module_path = $1`, modulePath); err != nil {
		insert_module.go#L712: 		if _, err := tx.Exec(ctx, `
		insert_module.go#L751: 	if _, err := tx.Exec(ctx, `SELECT pg_advisory_xact_lock($1)`, h); err != nil {
		insert_module.go#L852: 		if _, err := tx.Exec(ctx, stmt, modulePath, resolvedVersion); err != nil {
		insert_module.go#L855: 		if _, err = tx.Exec(ctx, `DELETE FROM version_map WHERE module_path = $1 AND resolved_version = $2`, modulePath, resolvedVersion); err != nil {
		insert_module.go#L858: 		if _, err = tx.Exec(ctx, `DELETE FROM search_documents WHERE module_path = $1 AND version = $2`, modulePath, resolvedVersion); err != nil {
		insert_module.go#L868: 		_, err = tx.Exec(ctx, `DELETE FROM imports_unique WHERE from_module_path = $1`, modulePath)
		insert_symbol_history.go#L36: 	if _, err := ddb.Exec(ctx, `LOCK TABLE symbol_history IN EXCLUSIVE MODE`); err != nil {
		path.go#L87: 	if _, err := tx.Exec(ctx, `LOCK TABLE paths IN EXCLUSIVE MODE`); err != nil {
		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)
		search.go#L683: 	_, err = ddb.Exec(ctx, upsertSearchStatement, args.PackagePath, args.ModulePath, args.Version, pathTokens, sectionB, sectionC, sectionD)
		search.go#L838: 	if _, err := db.Exec(ctx, createTableQuery); err != nil {
		search.go#L922: 	n, err := db.Exec(ctx, updateStmt)
		search.go#L1049: 		n, err := tx.Exec(ctx, q)
		search.go#L1066: 	_, err = db.db.Exec(ctx,
		test_helper.go#L111: 		if _, err := tx.Exec(ctx, `
		test_helper.go#L121: 		if _, err := tx.Exec(ctx, `TRUNCATE module_version_states CASCADE;`); err != nil {
		test_helper.go#L124: 		if _, err := tx.Exec(ctx, `TRUNCATE excluded_prefixes;`); err != nil {
		version.go#L559: 	_, err = tx.Exec(ctx, `
		version.go#L588: 	n, err := tx.Exec(ctx, `
		version_map.go#L36: 	_, err = db.db.Exec(ctx,
		versionstate.go#L97: 	affected, err := db.Exec(ctx, `
		versionstate.go#L154: 	affected, err := db.Exec(ctx, query, status, modulePath, resolvedVersion)
		versionstate.go#L173: 	_, err = db.db.Exec(ctx, query, modulePath, version, status, error)