Delete chirps
This commit is contained in:
21
internal/database/DeleteChirpByID.sql.go
Normal file
21
internal/database/DeleteChirpByID.sql.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user