zvt.contract.api

Functions

DBSession(provider[, db_name, data_schema])

get db session factory from (provider,db_name) or (provider,data_schema)

common_filter(query, data_schema[, ...])

build filter by the arguments

data_exist(session, schema, id)

whether exist data of the id

decode_entity_id(entity_id)

decode entity id to entity_type, exchange, code

del_data(data_schema[, filters, provider])

delete data by filters

df_to_db(df, data_schema, provider[, ...])

store the df to db

get_by_id(data_schema, id[, provider, session])

get one record by id from data schema

get_data(data_schema[, ids, entity_ids, ...])

query data by the arguments

get_data_count(data_schema[, filters, session])

get record count basing on the filters

get_db_engine(provider[, db_name, ...])

get db engine from (provider,db_name) or (provider,data_schema)

get_db_session(provider[, db_name, ...])

get db session from (provider,db_name) or (provider,data_schema)

get_db_session_factory(provider[, db_name, ...])

get db session factory from (provider,db_name) or (provider,data_schema)

get_entities([entity_schema, entity_type, ...])

get entities by the arguments

get_entity_code(entity_id)

get code by entity id

get_entity_exchange(entity_id)

get exchange by entity id

get_entity_ids([entity_type, entity_schema, ...])

get entity ids by the arguments

get_entity_schema(entity_type)

get entity schema from name

get_entity_type(entity_id)

get entity type by entity id

get_group(provider, data_schema, column[, ...])

get_providers()

get_schema_by_name(name)

get domain schema by the name

get_schema_columns(schema)

get all columns of the domain schema

get_schemas(provider)

get domain schemas supported by the provider