regen with sqlc 1.6.0
This commit is contained in:
parent
e5ad1e3fb3
commit
dde07cb315
@ -5,6 +5,7 @@ package db
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"encoding/json"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
@ -22,8 +23,8 @@ RETURNING user_id, created_at, first_name, last_name, username, email, token, to
|
|||||||
`
|
`
|
||||||
|
|
||||||
type AuthUserParams struct {
|
type AuthUserParams struct {
|
||||||
Crypt interface{} `json:"crypt"`
|
Crypt string `json:"crypt"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AuthUserRow struct {
|
type AuthUserRow struct {
|
||||||
@ -308,15 +309,15 @@ WHERE user_id = $1 and
|
|||||||
`
|
`
|
||||||
|
|
||||||
type SimilarEntriesParams struct {
|
type SimilarEntriesParams struct {
|
||||||
UserID int64 `json:"user_id"`
|
UserID int64 `json:"user_id"`
|
||||||
Similarity interface{} `json:"similarity"`
|
Similarity string `json:"similarity"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SimilarEntriesRow struct {
|
type SimilarEntriesRow struct {
|
||||||
EntryID uuid.UUID `json:"entry_id"`
|
EntryID uuid.UUID `json:"entry_id"`
|
||||||
Similarity interface{} `json:"similarity"`
|
Similarity float32 `json:"similarity"`
|
||||||
Headline interface{} `json:"headline"`
|
Headline json.RawMessage `json:"headline"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *Queries) SimilarEntries(ctx context.Context, arg SimilarEntriesParams) ([]SimilarEntriesRow, error) {
|
func (q *Queries) SimilarEntries(ctx context.Context, arg SimilarEntriesParams) ([]SimilarEntriesRow, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user