samuelcorradi / memdb

An in-memory agnostic database for Python.
Apache License 2.0
0 stars 0 forks source link

Does it make sense to create a schemaless dataset? #6

Closed samuelcorradi closed 2 years ago

samuelcorradi commented 2 years ago

Currently, if a schema is not provided for the Dataset, the Dataset class instantiates a schema obj in the constructor method. Does that make sense? If every dataset needs a schema, why not be mandatory to pass a schema at creation time?

samuelcorradi commented 2 years ago
if not schema:
    schema = Schema()
samuelcorradi commented 2 years ago
if not schema:
    raise Exception("Every dataset needs a schema.")