mapper

package
v0.0.0-...-22ac7ce Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mapper is a DAO mapper for mapping between JSON, an generic object, and a configurable database schema

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToJSONFromObject

func ToJSONFromObject(sch *schema.Schema, obj *object.Object, rootJSON string, rootPath string, setRootPath bool) (string, error)

ToJSONFromObject encodes a DynDAO object

func ToObjectArrayFromJSON

func ToObjectArrayFromJSON(sch *schema.Schema, json string) (object.Array, error)

ToObjectArrayFromJSON accepts a schema configuration and a string of json data and returns an object array.

func ToObjectFromJSON

func ToObjectFromJSON(sch *schema.Schema, consumedPath string, tbl string, json string) (*object.Object, error)

ToObjectFromJSON maps a JSON string into a DynDAO object

func ToObjectsFromJSON

func ToObjectsFromJSON(sch *schema.Schema, json string) (object.Array, error)

ToObjectsFromJSON accepts a schema configuration and a string of json data and returns an object array.

func UnmarshalToObject

func UnmarshalToObject(sch *schema.Schema, json string) (*object.Object, error)

UnmarshalToObject accepts a schema configuration and a string of json data and returns an object array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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