jsonquery

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Array

func Array(db *gorm.DB, query string, values ...interface{}) ([]byte, error)

Array returns an array result or a nil if nothing is found

func MustArray

func MustArray(db *gorm.DB, query string, values ...interface{}) ([]byte, error)

MustArray returns an array result or a default value if nothing is found

func MustObject

func MustObject(db *gorm.DB, query string, values ...interface{}) ([]byte, error)

MustObject returns an object result or a default value if nothing is found

func Object

func Object(db *gorm.DB, query string, values ...interface{}) ([]byte, error)

Object returns an object result or a nil if nothing is found

func Prepare added in v0.1.6

func Prepare(query string) string

Prepare returns a query with expanded array/object blocks TODO: could use a refactor to utilize the replacer func

Types

This section is empty.

Jump to

Keyboard shortcuts

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