Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 526 Bytes

db.rst

File metadata and controls

21 lines (13 loc) · 526 Bytes

Database functions

Simple thread-safe SQLAlchemy wrapper

after initialization, wrapper object contains additional params:

  • name equal to SQLAlchemy engine name
  • use_lastrowid show last row id be used (sqlite, mysql)
  • use_interval can interval columns be used (not available for sqlite, mysql)
  • parse_db_json should JSON column be parsed after selecting (sqlite, mysql)

__str__ and __repr__ methods are mapped to SQLAlchemy engine.

pyaltt2.db