5.5. Convertor classes

5.5.1. RecordConvertor class

class simplesqlite.converter.RecordConvertor[source]

Bases: object

classmethod to_record(attr_name_list, value)[source]

Convert values to a record to be inserted into a database.

Parameters:
Raises:

ValueError – If the value is invalid.

classmethod to_record_list(attr_name_list, data_matrix)[source]

Convert matrix to records to be inserted into a database.

Parameters:
  • attr_name_list (list) – List of the attributes for the converting record.
  • data_matrix (list of dict/namedtuple()/list/tuple) – Value to be converted.

See also

to_record()