Files
go-http-server/internal/database/DeleteChirpByID.sql.go
2025-03-11 23:04:05 +02:00

22 lines
408 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
// source: DeleteChirpByID.sql
package database
import (
"context"
"github.com/google/uuid"
)
const deleteChirpByID = `-- name: DeleteChirpByID :exec
DELETE FROM chirps WHERE id = $1
`
func (q *Queries) DeleteChirpByID(ctx context.Context, id uuid.UUID) error {
_, err := q.db.ExecContext(ctx, deleteChirpByID, id)
return err
}