Database

Object Relation Mapper (ORM) More...

## Classes

class | QDjango
| The QDjango class provides a set of static functions. More...
class | QDjangoModel
| The QDjangoModel class is the base class for all models. More...
class | QDjangoQuerySet< T >
| The QDjangoQuerySet class is a template class for performing database queries. More...
class | QDjangoQuerySet< T >::const_iterator
class | QDjangoWhere
| The QDjangoWhere class expresses an SQL constraint. More...

## Enumerations

enum

QDjangoWhere::Operation {
QDjangoWhere::None, QDjangoWhere::Equals, QDjangoWhere::NotEquals, QDjangoWhere::GreaterThan,
QDjangoWhere::LessThan, QDjangoWhere::GreaterOrEquals, QDjangoWhere::LessOrEquals, QDjangoWhere::StartsWith,
QDjangoWhere::EndsWith, QDjangoWhere::Contains, QDjangoWhere::IsIn, QDjangoWhere::IsNull,
QDjangoWhere::IEquals, QDjangoWhere::INotEquals, QDjangoWhere::IStartsWith, QDjangoWhere::IEndsWith,
QDjangoWhere::IContains
}

| A comparison operation on a database column value. More...

## Detailed Description

Object Relation Mapper (ORM)

QDjango's Object Relation Mapper (ORM) strives to be both powerful and simple to use. Where possible it tries to follow django's ORM API, with a similar lazy queryset mechanism.

The object relation mapper builds upon Qt's Meta-Object System, so if you are familiar with Qt, you should feel right at home. Features include:

- support for a wide range of database backends thanks to QtSql
- creating and registering database models is easy using Qt's property system
- performing queries using querysets
- QDjango can create and drop database tables and indices for registered models
- thread-aware access to the database

## Enumeration Type Documentation

enum QDjangoWhere::Operation

A comparison operation on a database column value.

Enumerator
None | No comparison, always returns true.
Equals | Returns true if the column value is equal to the given value.
NotEquals | Returns true if the column value is not equal to the given value.
GreaterThan | Returns true if the column value is greater than the given value.
LessThan | Returns true if the column value is less than the given value.
GreaterOrEquals | Returns true if the column value is greater or equal to the given value.
LessOrEquals | Returns true if the column value is less or equal to the given value.
StartsWith | Returns true if the column value starts with the given value (strings only).
EndsWith | Returns true if the column value ends with the given value (strings only).
Contains | Returns true if the column value contains the given value (strings only).
IsIn | Returns true if the column value is one of the given values.
IsNull | Returns true if the column value is null.
IEquals | Returns true if the column value is equal to the given value (case-insensitive)
INotEquals | Returns true if the column value is not equal to the given value (case-insensitive).
IStartsWith | Returns true if the column value starts with the given value (strings only, case-insensitive).
IEndsWith | Returns true if the column value ends with the given value (strings only, case-insensitive).
IContains | Returns true if the column value contains the given value (strings only, case-insensitive).