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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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