Documentation ¶
Index ¶
- type Collection
- type CreateCollectionItemParams
- type CreateCollectionItemRow
- type DBTX
- type DeleteCollectionItemParams
- type GetCollectionItemParams
- type GetCollectionItemRow
- type ListAllCollectionItemsRow
- type Queries
- func (q *Queries) CreateCollectionItem(ctx context.Context, db DBTX, arg CreateCollectionItemParams) (CreateCollectionItemRow, error)
- func (q *Queries) DeleteCollectionItem(ctx context.Context, db DBTX, arg DeleteCollectionItemParams) error
- func (q *Queries) GetCollectionItem(ctx context.Context, db DBTX, arg GetCollectionItemParams) (GetCollectionItemRow, error)
- func (q *Queries) ListAllCollectionItems(ctx context.Context, db DBTX, collectionName string) ([]ListAllCollectionItemsRow, error)
- func (q *Queries) UpdateCollectionItem(ctx context.Context, db DBTX, arg UpdateCollectionItemParams) error
- type QueryBuilder
- type UpdateCollectionItemParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Filename string CollectionName string Content string Metadata string CreatedAt sql.NullString UpdatedAt sql.NullString }
type CreateCollectionItemRow ¶
type GetCollectionItemParams ¶
type GetCollectionItemRow ¶
type ListAllCollectionItemsRow ¶
type ListAllCollectionItemsRow struct { Filename string Content string Metadata string CreatedAt sql.NullString }
type Queries ¶
type Queries struct { }
func (*Queries) CreateCollectionItem ¶
func (q *Queries) CreateCollectionItem(ctx context.Context, db DBTX, arg CreateCollectionItemParams) (CreateCollectionItemRow, error)
func (*Queries) DeleteCollectionItem ¶
func (*Queries) GetCollectionItem ¶
func (q *Queries) GetCollectionItem(ctx context.Context, db DBTX, arg GetCollectionItemParams) (GetCollectionItemRow, error)
func (*Queries) ListAllCollectionItems ¶
func (*Queries) UpdateCollectionItem ¶
type QueryBuilder ¶
type QueryBuilder struct { Query string Args []interface{} }
func BuildCollectionQuery ¶
func BuildCollectionQuery(r *http.Request, collectionConfig *config.Collection) (*QueryBuilder, error)
buildCollectionQuery constructs a SQL query with filters based on form data and collection config
Click to show internal directories.
Click to hide internal directories.