Welcome to quma’s docs

Warning

This is alpha software and subject to change!

quma is a small SQL database library for Python and PyPy version 3.5 and higher. It maps object methods to SQL script files and supports SQLite, PostgreSQL, MySQL and MariaDB.

Unlike ORMs, it allows to write SQL as it was intended and to use all features the DBMS provides. As it uses plain SQL files you can fully utilize your database editor or IDE tool to author your queries.

It also provides a simple connection pool.

Learn more

  • If you want to know how to install quma and its dependencies, see Installation.
  • To get started read How to use quma from start to finish.
  • To see what you can do with query objects read The Query class.
  • In Connecting you learn how to connect to SQLite, PostgreSQL and MySQL/MariaDB databases.
  • Connection pool.
  • Learn what a changling cursor is and how it enables you to access result data in three different ways.
  • Database management systems have different ways of parameter binding. Passing parameters shows how it works in quma.
  • SQL doesn’t support every kind of dynamic queries. If you reach its limits you can circumvent this by using Templates.
  • If you pass more than one directory to the constructor, quma shadows duplicate files. See how this works in Shadowing.
  • You can add custom methods to namespaces. Learn how to do it in Custom namespaces. You will also learn about aliasing.
  • If you like to work on quma itself, Testing has the information on how to run its tests.

License

quma is released under the MIT license.

Copyright © 2018 ebene fünf GmbH. All rights reserved.