Skip to content

Commit

Permalink
docs(database): update mysql client
Browse files Browse the repository at this point in the history
Related: #174
  • Loading branch information
RomainLanz committed Oct 21, 2022
1 parent 78296c3 commit 8a817e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions content/guides/database/introduction.md
Expand Up @@ -293,7 +293,7 @@ Lucid will queue new queries when the pool is full and waits for the pool to hav
```ts
{
mysql: {
client: 'mysql',
client: 'mysql2',
connection: {},
// highlight-start
pool: {
Expand All @@ -316,7 +316,7 @@ You can configure the pool settings for a given connection inside the `config/da
{
connections: {
mysql: {
client: 'mysql',
client: 'mysql2',
connection: {
},
// highlight-start
Expand Down Expand Up @@ -407,7 +407,7 @@ npm i mysql2

```ts
mysql: {
client: 'mysql',
client: 'mysql2',
connection: {
host: Env.get('MYSQL_HOST'),
port: Env.get('MYSQL_PORT'),
Expand Down
6 changes: 3 additions & 3 deletions content/guides/database/migrations.md
Expand Up @@ -274,15 +274,15 @@ Define the migrations path next to the database connection config.
```ts
{
users: {
client: 'mysql',
client: 'mysql2',
migrations: {
// highlight-start
paths: ['./database/users/migrations']
// highlight-end
}
},
products: {
client: 'mysql',
client: 'mysql2',
migrations: {
// highlight-start
paths: ['./database/products/migrations']
Expand Down Expand Up @@ -393,7 +393,7 @@ The configuration for migrations is stored inside the `config/database.ts` file
```ts
{
mysql: {
client: 'mysql',
client: 'mysql2',
migrations: {
naturalSort: true,
disableTransactions: false,
Expand Down
4 changes: 2 additions & 2 deletions content/guides/database/seeders.md
Expand Up @@ -156,7 +156,7 @@ Define the paths for loading the database seeder files. You can also define a pa
```ts
{
mysql: {
client: 'mysql',
client: 'mysql2',
seeders: {
paths: ['./database/seeders', '@somepackage/seeders-dir']
}
Expand Down Expand Up @@ -188,7 +188,7 @@ After the following change, the `db:seed` command will scan the `./database/seed
```ts
{
mysql: {
client: 'mysql',
client: 'mysql2',
// ... rest of the config
seeders: {
paths: ['./database/seeders/MainSeeder']
Expand Down

0 comments on commit 8a817e1

Please sign in to comment.