@@ -57,30 +57,30 @@ Thank you! We'll try to get back to you as soon as possible.
57572 . Install the system libraries needed to interface with the database systems
5858 you which to use.
5959
60- These are the same as when compiling diesel. In general, it is a good idea
61- to have _ all_ drivers installed so you can run all tests locally.
60+ These are the same as when compiling diesel. In general, it is a good idea
61+ to have _ all_ drivers installed so you can run all tests locally.
6262
63- * Shortcut:* On macOS, you don't need to install anything to work with SQLite
64- and for PostgreSQL you'll only need the server (` libpq ` is installed by
65- default). So, to get started, ` brew install postgresql mysql ` and follow the
66- instructions shown to set up the database servers.
63+ * Shortcut:* On macOS, you don't need to install anything to work with SQLite
64+ and for PostgreSQL you'll only need the server (` libpq ` is installed by
65+ default). So, to get started, ` brew install postgresql mysql ` and follow the
66+ instructions shown to set up the database servers.
67673 . Clone this repository and open it in your favorite editor.
68684 . Create a ` .env ` file in the ` diesel/ ` directory, and add the connection
6969 details for your databases.
7070
71- For example:
71+ For example:
7272
73- ```
74- PG_DATABASE_URL=postgresql://localhost/diesel_test
75- SQLITE_DATABASE_URL=/tmp/diesel_test.sqlite
76- MYSQL_DATABASE_URL=mysql://localhost/diesel_test
77- MYSQL_UNIT_TEST_DATABASE_URL=mysql://localhost/diesel_unit_tests
78- ```
73+ ```
74+ PG_DATABASE_URL=postgresql://localhost/diesel_test
75+ SQLITE_DATABASE_URL=/tmp/diesel_test.sqlite
76+ MYSQL_DATABASE_URL=mysql://localhost/diesel_test
77+ MYSQL_UNIT_TEST_DATABASE_URL=mysql://localhost/diesel_unit_tests
78+ ```
7979
80- *Note:* If you didn't specify the MySQL user to be one with elevated
81- permissions, you'll want to a command like ```mysql -c "GRANT ALL ON
82- `diesel_%`.* TO ''@'localhost';" -uroot```, or something similar for the
83- user that you've specified.
80+ * Note:* If you didn't specify the MySQL user to be one with elevated
81+ permissions, you'll want to a command like ```mysql -c "GRANT ALL ON
82+ ` diesel_% ` .* TO ''@'localhost';" -uroot```, or something similar for the
83+ user that you've specified.
84845 . Now, try running the test suite to confirm everything works for you locally
8585 by executing ` bin/test ` . (Initially, this will take a while to compile
8686 everything.)
0 commit comments