create_template_record()
#
create_template_record()
generates a new template record based on the provided column definitions and input data.
Prototype
json_t *create_template_record(
const char *template_name, // used only for log
json_t *cols, // NOT owned
json_t *kw // Owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the template, used only for logging purposes. |
|
|
A JSON object describing the column definitions. This parameter is not owned by the function. |
|
|
A JSON object containing the input data for the template record. This parameter is owned by the function. |
Return Value
Returns a JSON object representing the created template record.
Notes
The returned JSON object must be decremented (json_decref()
) by the caller when no longer needed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples