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: - attr_name_list (list) – List of the attributes for the converting record.
- value (
dict
/namedtuple()
/list
/tuple
) – Value to be converted.
Raises: ValueError – If the
value
is invalid.
-
classmethod