parse_schema_cols()

parse_schema_cols()#

parse_schema_cols() validates and processes the column definitions in a schema, ensuring correctness and consistency.

Prototype

int parse_schema_cols(
    json_t *cols_desc,  // NOT owned
    json_t *data        // owned
);

Parameters

Key

Type

Description

cols_desc

json_t *

A JSON object describing the schema columns. This parameter is not owned by the function.

data

json_t *

A JSON object containing the column data to be validated. This parameter is owned by the function.


Return Value

Returns 0 if the schema columns are valid, or a negative number indicating the number of errors encountered.

Notes

The function ensures that the column definitions conform to the expected schema format. If errors are found, the return value indicates the number of issues detected.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples