Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to mysql2 #179

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/guides/database/introduction.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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