Commit Graph

6 Commits

Author SHA1 Message Date
Tom Christie b3ad311bbc
Template component (#398)
* Add Jinja2Templates component

* Fix imports

* Prevent code formatters from moving deliberatly late import
2019-02-18 13:28:18 +00:00
Tom Christie e8dff17ed4
Move to 'databases' instead of built-in DatabaseMiddleware (#390) 2019-02-14 16:01:51 +00:00
Tom Christie 3270762c16
MySQL driver support (#366)
* initial support for MySQL

* Work towards testing both MySQL and Postgres drivers

* Linting

* STARLETTE_TEST_DATABASE -> STARLETTE_TEST_DATABASES

* Parameterize the database tests

* Include the MySQL Database URL

* MySQL tests should create the database if it doesn't yet exist

* Explict port of MySQL database URL

* Debugging on Travis

* Pass 'args' as a single argument

* Fix query compilation for mysql

* Lookup record values for MySQL

* Coerce MySQL results to correct python_type

* cursor.fetchrow should be cursor.fetchone

* Fix call to cursor.fetchone()

* Fix for fetchval()

* Debugging

* Nested transaction for MySQL should use SAVEPOINTS

* Drop savepoint implementation

* Fix SAVEPOINT implementation for MySQL

* Coverage for MySQL

* Linting

* Tweak defaults for MySQL connections
2019-01-30 14:21:58 +00:00
Daniel Hahler d978bd4eef tests: skip test_database without DATABASE_URL (#263)
* tests: skip test_database without DATABASE_URL

(instead of causing a collection error)

* fixup! tests: skip test_database without DATABASE_URL
2018-12-11 13:09:09 +00:00
Tom Christie 1e1f3bab46
Add executemany (#259) 2018-12-10 14:37:30 +00:00
Tom Christie 0b7819b4b2
Add DatabaseMiddleware (#243)
* Add `DatabaseMiddleware`
2018-12-04 16:05:16 +00:00