Documentation ¶
Overview ¶
Package mapper is a DAO mapper for mapping between JSON, an generic object, and a configurable database schema
Index ¶
- func ToJSONFromObject(sch *schema.Schema, obj *object.Object, rootJSON string, rootPath string, ...) (string, error)
- func ToObjectArrayFromJSON(sch *schema.Schema, json string) (object.Array, error)
- func ToObjectFromJSON(sch *schema.Schema, consumedPath string, tbl string, json string) (*object.Object, error)
- func ToObjectsFromJSON(sch *schema.Schema, json string) (object.Array, error)
- func UnmarshalToObject(sch *schema.Schema, json string) (*object.Object, error)
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 ¶
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 ¶
ToObjectsFromJSON accepts a schema configuration and a string of json data and returns an object array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.