Delete chirps

This commit is contained in:
2025-03-11 23:04:05 +02:00
parent 704393e0e4
commit bad1d140ee
3 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// 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
}