Skip to content

Commit

Permalink
feat: Add mysql support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbukachi committed May 5, 2020
1 parent 657f35d commit 4a79ca6
Show file tree
Hide file tree
Showing 17 changed files with 819 additions and 281 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ executors:
- image: circleci/mongo:3.6.12
command: "mongod --journal"
- image: redis:5.0.7
- image: mysql:5.6
environment:
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: password


python36:
Expand All @@ -25,6 +29,10 @@ executors:
- image: circleci/mongo:3.6.12
command: "mongod --journal"
- image: redis:5.0.7
- image: mysql:5.6
environment:
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: password

python37:
docker:
Expand All @@ -37,6 +45,10 @@ executors:
- image: circleci/mongo:3.6.12
command: "mongod --journal"
- image: redis:5.0.7
- image: mysql:5.6
environment:
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: password

python38:
docker:
Expand All @@ -49,6 +61,10 @@ executors:
- image: circleci/mongo:3.6.12
command: "mongod --journal"
- image: redis:5.0.7
- image: mysql:5.6
environment:
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: password

publish:
docker:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Relational Database Fixtures
============================

There is a page specifically for :ref:`redshift-label` , but all the relational database
(sqlite, postgres, redshift, etc) fixtures have the same signatures, and therefore
(sqlite, postgres, redshift, mysql etc) fixtures have the same signatures, and therefore
support the same utilities for running DDL, setup, and whatnot.

Basics
Expand Down
7 changes: 7 additions & 0 deletions docs/source/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ For Mongo:
$ pmr mongo
711f5d5a86896bb4eb76813af4fb6616aee0eff817cdec6ebaf4daa0e9995441
For MySQL:

.. code-block:: bash
$ pmr mysql
711f5d5a86896bb4eb76813af4fb6616aee0eff817cdec6ebaf4daa0e9995441
You can check on the instance's state via:

.. code-block:: bash
Expand Down
1 change: 1 addition & 0 deletions docs/source/fixtures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ from one test to another, see :ref:`internals-label` for more details.
SQLite <sqlite>
Mongo <mongo>
Redis <redis>
MySQL <mysql>

Internals <internals>
Loading

0 comments on commit 4a79ca6

Please sign in to comment.