MercurySQL.core

Operate SQL in a more pythonic way.

This file contains the implementation of a common SQL database wrapper class, and for each sql (e.g. sqlite, mysql), a Driver is needed.

Note

This code is a simplified implementation and may not cover all possible use cases. Please refer to the official documentation for more information.

Warning

This module will not perform any inspection on DB names, Table names or Column names etc. However, all the query values are replaced with safe queries (’?’ or else). Therefore, it is recommended to hardcode Column names to prevent SQL injection.

Advanced APIs

Low-level APIs