Documentation ¶
Index ¶
- type DBTX
- type Queries
- func (q *Queries) AllNodes(ctx context.Context, limit int32, offset int32) ([]models.PageNode, error)
- func (q *Queries) Close() error
- func (q *Queries) CountNodes(ctx context.Context) (int64, error)
- func (q *Queries) CountNodesByTypeHash(ctx context.Context, contentType string) (int64, error)
- func (q *Queries) CountRootNodes(ctx context.Context) (int64, error)
- func (q *Queries) DecrementNumChild(ctx context.Context, id int64) (models.PageNode, error)
- func (q *Queries) DeleteDescendants(ctx context.Context, path interface{}, depth int64) error
- func (q *Queries) DeleteNode(ctx context.Context, id int64) error
- func (q *Queries) DeleteNodes(ctx context.Context, id []int64) error
- func (q *Queries) GetChildNodes(ctx context.Context, path interface{}, depth interface{}, limit int32, ...) ([]models.PageNode, error)
- func (q *Queries) GetDescendants(ctx context.Context, path interface{}, depth int64, limit int32, offset int32) ([]models.PageNode, error)
- func (q *Queries) GetNodeByID(ctx context.Context, id int64) (models.PageNode, error)
- func (q *Queries) GetNodeByPath(ctx context.Context, path string) (models.PageNode, error)
- func (q *Queries) GetNodeBySlug(ctx context.Context, slug string, depth int64, path interface{}) (models.PageNode, error)
- func (q *Queries) GetNodesByDepth(ctx context.Context, depth int64, limit int32, offset int32) ([]models.PageNode, error)
- func (q *Queries) GetNodesByIDs(ctx context.Context, id []int64) ([]models.PageNode, error)
- func (q *Queries) GetNodesByPageIDs(ctx context.Context, pageID []int64) ([]models.PageNode, error)
- func (q *Queries) GetNodesByTypeHash(ctx context.Context, contentType string, limit int32, offset int32) ([]models.PageNode, error)
- func (q *Queries) GetNodesByTypeHashes(ctx context.Context, contentType []string, limit int32, offset int32) ([]models.PageNode, error)
- func (q *Queries) GetNodesForPaths(ctx context.Context, path []string) ([]models.PageNode, error)
- func (q *Queries) IncrementNumChild(ctx context.Context, id int64) (models.PageNode, error)
- func (q *Queries) InsertNode(ctx context.Context, title string, path string, depth int64, numchild int64, ...) (int64, error)
- func (q *Queries) UpdateNode(ctx context.Context, title, path string, depth, numchild int64, ...) error
- func (q *Queries) UpdateNodePathAndDepth(ctx context.Context, path string, depth int64, iD int64) error
- func (q *Queries) UpdateNodeStatusFlags(ctx context.Context, statusFlags int64, iD int64) error
- func (q *Queries) UpdateNodes(ctx context.Context, nodes []*models.PageNode) error
- func (q *Queries) WithTx(tx *sql.Tx) models.Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountNodesByTypeHash ¶ added in v1.6.6
func (*Queries) CountRootNodes ¶
func (*Queries) DecrementNumChild ¶
func (*Queries) DeleteDescendants ¶
func (*Queries) GetChildNodes ¶
func (*Queries) GetDescendants ¶
func (*Queries) GetNodeByID ¶
func (*Queries) GetNodeByPath ¶
func (*Queries) GetNodeBySlug ¶
func (*Queries) GetNodesByDepth ¶
func (*Queries) GetNodesByIDs ¶
func (*Queries) GetNodesByPageIDs ¶
func (*Queries) GetNodesByTypeHash ¶
func (*Queries) GetNodesByTypeHashes ¶
func (*Queries) GetNodesForPaths ¶
func (*Queries) IncrementNumChild ¶
func (*Queries) InsertNode ¶
func (*Queries) UpdateNode ¶
func (*Queries) UpdateNodePathAndDepth ¶
func (*Queries) UpdateNodeStatusFlags ¶
func (*Queries) UpdateNodes ¶
Click to show internal directories.
Click to hide internal directories.