Package vsql_core :: Package catalog :: Module SchemaHelper
[hide private]
[frames] | no frames]

Module SchemaHelper

source code

This is responsible for building the metadata tables used by VictorSQL to maintain multiple model descriptions and model instances.

Functions [hide private]
string
make_create_model_statements(l)
Creates model table and insert it into the Victor_Models table
source code
 
make_create_model_instance(l)
Creates INSERT statement for the given model instance
source code
Variables [hide private]
  tuple_values = ["name", "objective", "objective_item", "grad",...
  types_names = ["model_type", "data_type"]
Function Details [hide private]

make_create_model_statements(l)

source code 

Creates model table and insert it into the Victor_Models table

Parameters:
  • l (vector) - contains index and values in the vector
Returns: string
insert model and create model table queries

make_create_model_instance(l)

source code 

Creates INSERT statement for the given model instance

Parameters:
  • l (tuple) - tuple that contains name, model name data view, k, values and initial value

Variables Details [hide private]

tuple_values

Value:
["name", "objective", "objective_item", "grad", "prox", "model_type", \
"data_type"]