Skip to content

Commit 1308369

Browse files
Merge pull request #6 from fgilio/patch-2
Mention how to use it for failed jobs storage
2 parents c231998 + a11c2cb commit 1308369

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ composer require singlestore/singlestore-laravel
1414

1515
## Usage
1616

17-
To enable the driver, head to your `config/databases.php` file and create a new entry for SingleStore in your `connections`, and update your `default` to point to that new connection:
17+
To enable the driver, head to your `config/database.php` file and create a new entry for SingleStore in your `connections`, and update your `default` to point to that new connection:
1818

1919
```php
2020
[
@@ -46,6 +46,16 @@ To enable the driver, head to your `config/databases.php` file and create a new
4646

4747
> The SingleStore driver is an extension of the MySQL driver, so you could also just change your `driver` from `mysql` to `singlestore`.
4848
49+
In case you want to store failed jobs in SingleStore, then make sure you also set it as the `database` in your `config/queue.php` file. At which point, you may actually preffer to set `DB_CONNECTION='singlestore'` in your environment variables.
50+
51+
```php
52+
'failed' => [
53+
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
54+
'database' => env('DB_CONNECTION', 'singlestore'),
55+
'table' => 'failed_jobs',
56+
],
57+
```
58+
4959
## Migrations
5060

5161
This driver provides many SingleStore specific methods for creating or modifying tables. They are listed below. For more information see the [Create Table](https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-definition-language-ddl/create-table.html) docs on SingleStore.
@@ -238,4 +248,4 @@ RESPECT TO THIS BETA SOFTWARE CONNECTOR (INCLUDING TOOLS AND UTILITIES).
238248

239249
APPLICABLE OPEN SOURCE LICENSE: Apache 2.0
240250

241-
IF YOU OR YOUR COMPANY DO NOT AGREE TO THESE TERMS AND CONDITIONS, DO NOT CHECK THE ACCEPTANCE BOX, AND DO NOT DOWNLOAD, ACCESS, COPY, INSTALL OR USE THE SOFTWARE OR THE SERVICES.
251+
IF YOU OR YOUR COMPANY DO NOT AGREE TO THESE TERMS AND CONDITIONS, DO NOT CHECK THE ACCEPTANCE BOX, AND DO NOT DOWNLOAD, ACCESS, COPY, INSTALL OR USE THE SOFTWARE OR THE SERVICES.

0 commit comments

Comments
 (0)