MOAL.storage.modeling package

Submodules

MOAL.storage.modeling.data_modeling module

MOAL.storage.modeling.data_modeling.DEBUG = False

From https://www.coursera.org/learn/data-manipulation/home/welcome A Data Model is defined as having three primary properties:

  1. Structure
rows and columns nodes and edges key-value pairs sequence of bytes (raw, block data, file data)
  1. Constraints

    “all rows must have the same number of columns” “all values in one column must have the same type” “a child cannot have two parents”

  2. Operations

    “find value of key x” “find rows where column lastname is jordan” “get the next N bytes”

class MOAL.storage.modeling.data_modeling.Structure(*args, **kwargs)[source]

This is a somewhat arbitrary and meaningless class, but it signifies some of these concepts in real code.

__getitem__(key)[source]
__init__(*args, **kwargs)[source]
constraint(constraint_name, field)[source]
operation(operation_name, val)[source]
show_model()[source]
MOAL.storage.modeling.data_modeling.create_field(schema, field, value)[source]
MOAL.storage.modeling.data_modeling.delete_field(schema, field)[source]
MOAL.storage.modeling.data_modeling.greater_than(val1, val2)[source]
MOAL.storage.modeling.data_modeling.less_than(val1, val2)[source]
MOAL.storage.modeling.data_modeling.longer(val1, val2)[source]
MOAL.storage.modeling.data_modeling.read_field(schema, field)[source]
MOAL.storage.modeling.data_modeling.shorter(val1, val2)[source]
MOAL.storage.modeling.data_modeling.update_field(schema, field, replace)[source]