arangodb

package
v0.0.0-...-4ef57ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentFindBySlug = `
		FOR cnt IN @@content_collection
			FILTER cnt.slug == @slug
			LIMIT 1
			RETURN cnt
	`
	ContentList = `
		FOR cnt IN @@content_collection
			SORT cnt.created_on DESC
			LIMIT @limit
			RETURN cnt
	`
	ContentListWithCursor = `` /* 144-byte string literal not displayed */

	ContentListFilter = `
		FOR cnt IN @@content_collection
			%s
			SORT cnt.created_on DESC
			LIMIT @limit
			RETURN cnt
	`
	ContentListFilterWithCursor = `` /* 150-byte string literal not displayed */

	ContentInsert = `` /* 274-byte string literal not displayed */

	ContentUpdate = `` /* 162-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func FilterMap

func FilterMap() map[string]string

FilterMap provides mapping of filter attributes to database fields.

func NewContentRepo

func NewContentRepo(
	connP *manager.ConnectParams,
	collection string,
) (repository.ContentRepository, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL