tests Package
tests Package
mqlalchemy.tests.__init__
Tests for our new query syntax.
models Module
mqlalchemy.tests.models.py
SQLAlchemy models for the Chinook database.
- class tests.models.Album(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Album table in our database.
- album_id
- title
- artist_id
- artist
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- tracks
- class tests.models.Artist(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Artist table in our database.
- artist_id
- name
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- albums
- class tests.models.Customer(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Customer table in our database.
- customer_id
- first_name
- last_name
- company
- address
- city
- state
- country
- postal_code
- phone
- fax
- email
- support_rep_id
- employee
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.Employee(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Employee table in our database.
- employee_id
- last_name
- first_name
- title
- reports_to
- birth_date
- hire_date
- address
- city
- state
- country
- postal_code
- phone
- fax
- email
- manager
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- subordinates
- class tests.models.Genre(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Genre table in our database.
- genre_id
- name
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.Invoice(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Invoice table in our database.
- invoice_id
- customer_id
- invoice_date
- billing_address
- billing_city
- billing_state
- billing_country
- billing_postal_code
- total
- customer
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.InvoiceLine(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the InvoiceLine table in our database.
- invoice_line_id
- invoice_id
- track_id
- unit_price
- quantity
- invoice
- track
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.MediaType(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the MediaType table in our database.
- media_type_id
- name
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.Playlist(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Playlist table in our database.
- playlist_id
- name
- tracks
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class tests.models.Track(**kwargs)[source]
Bases:
BaseSQLAlchemy model for the Track table in our database.
- track_id
- name
- album_id
- media_type_id
- genre_id
- composer
- milliseconds
- bytes
- unit_price
- album
- genre
- media_type
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- playlists