[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [NativeSqlite](https://evolu.dev/docs/api-reference/common/NativeSqlite) › createNativeSqliteDriver

```ts
function createNativeSqliteDriver(
  deps: DatabasePathDep & NativeSqliteDep,
): CreateSqliteDriver;
```

Defined in: [packages/common/src/NativeSqlite.ts:280](https://github.com/evoluhq/evolu/blob/1ef91d4e21b74fa0c122e48558188dc42676c429/packages/common/src/NativeSqlite.ts#L280)

Creates the [CreateSqliteDriver](https://evolu.dev/docs/api-reference/common/Sqlite/type-aliases/CreateSqliteDriver) of Evolu over a [NativeSqlite](https://evolu.dev/docs/api-reference/common/NativeSqlite/interfaces/NativeSqlite)
binding.

A database is the file [DatabasePathDep](https://evolu.dev/docs/api-reference/common/NativeSqlite/interfaces/DatabasePathDep) names, which the driver reads
at each open. The `encrypted` mode opens it with the encryption key, the mode
without options opens it in plaintext, and the `memory` mode opens a database
of its own in memory.

One connection of the process holds a file at a time. A platform's
`WaitForDatabaseRelease` can wait for another connection to close the file
first, but one can still open it between that wait and the open, as a runtime
still starting during an early reload does, so an open of a held file tries
again, as [retryWhileHeld](https://evolu.dev/docs/api-reference/common/NativeSqlite/functions/retryWhileHeld) does, and throws once it's still held 10
seconds after the first attempt.

The [SqliteDriver](https://evolu.dev/docs/api-reference/common/Sqlite/interfaces/SqliteDriver) contract has no error channel, so the driver throws
what the binding throws, such as an `Error` whose cause is a
[NativeSqliteError](https://evolu.dev/docs/api-reference/common/NativeSqlite/interfaces/NativeSqliteError) for a wrong key.