# KyselyOptions

`interface` in `plugin-kysely` · v0.9.0

<https://seedcord.org/docs/packages/plugin-kysely/0.9.0/interfaces/kysely-options>

Options for the Kysely plugin's connection, migrations and services.

```ts
interface KyselyOptions
```

## Properties

### dialect

```ts
readonly dialect: () => Dialect
```

Builds the Kysely dialect for your database. The plugin calls it in `init()` and never while
`seedcord build` or `seedcord codegen` loads your bot.

### kysely

```ts
readonly kysely?: Except<KyselyConfig, 'dialect'>
```

Any other Kysely config, like `log` or `plugins`

### migrations

```ts
readonly migrations: KyselyMigrationsOptions
```

Migration settings

### path

```ts
readonly path: string
```

Folder holding your service classes, subfolders included. A relative path resolves against `root` from `seedcord.config.ts`.

### timeout

```ts
readonly timeout?: number
```

How long closing the connection may take during shutdown, in milliseconds.
