feature

Classes

Feature(name, affinity, is_null)

Representation of a data feature.

class Feature(name: str, affinity: str, is_null: bool)[source]

Representation of a data feature.

name

The name of the feature.

affinity

The SQLite3 type affinity of the feature.

Type

{“NUMERIC”, “INTEGER”, “REAL”, “TEXT”, “BLOB”}

is_null

True if feature data can be null, False otherwise.

make_query() str[source]

Make SQLite3 CREATE TABLE query column definition.

Column definition is (name AFFINITY) if the feature can be null. Column definition is (name AFFINITY NOT NULL) if the feature can not be null.

Returns

SQLite3 column definition.