Skip to content

Commit

Permalink
Documentation typos (#575)
Browse files Browse the repository at this point in the history
Am I misreading this?  These changes should make the parameter to attribute mapping less ambiguous...
  • Loading branch information
timeemit committed Aug 13, 2020
1 parent daf97d2 commit 2ea6404
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/docs/configuration/databases.md
Expand Up @@ -27,7 +27,7 @@ You can specify database credentials as as a connection string or a [TypeORM con
The following approaches are exactly equivalent:

```js
database: 'mysql://username:password@127.0.0.1:3306/database_name'
database: 'mysql://nextauth:password@127.0.0.1:3306/database_name'
```

```js
Expand All @@ -37,7 +37,7 @@ database: {
port: 3306,
username: 'nextauth',
password: 'password',
database: 'nextauth'
database: 'database_name'
}
```

Expand All @@ -47,7 +47,7 @@ You can pass in any valid [TypeORM configuration option](https://github.com/type
*e.g. To set a prefix for all table names you can use the **entityPrefix** option as connection string parameter:*

```js
'mysql://username:password@127.0.0.1:3306/database_name?entityPrefix=nextauth_'
'mysql://nextauth:password@127.0.0.1:3306/database_name?entityPrefix=nextauth_'
```

*…or as a database configuration object:*
Expand All @@ -59,7 +59,7 @@ database: {
port: 3306,
username: 'nextauth',
password: 'password',
database: 'nextauth'
database: 'database_name'
entityPrefix: 'nextauth_'
}
```
Expand All @@ -81,7 +81,7 @@ _If you are running SQLite, MongoDB or a Document database you can skip this ste
Alternatively, you can also have your database configured automatically using the `synchronize: true` option:

```js
database: 'mysql://username:password@127.0.0.1:3306/database_name?synchronize=true'
database: 'mysql://nextauth:password@127.0.0.1:3306/database_name?synchronize=true'
```

```js
Expand All @@ -91,7 +91,7 @@ database: {
port: 3306,
username: 'nextauth',
password: 'password',
database: 'nextauth',
database: 'database_name',
synchronize: true
}
```
Expand Down

1 comment on commit 2ea6404

@vercel
Copy link

@vercel vercel bot commented on 2ea6404 Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.