---
description:
  Use GraphQL schema created by Tuql for SQLite databases or SQL dump files with GraphQL Mesh Tuql
  handler. Install `@graphql-mesh/tuql` and get started!
---

# SQLite / Tuql

![image](https://user-images.githubusercontent.com/20847995/79220131-228d5480-7e5c-11ea-8faa-63083653573b.png)

This handler allows you to use GraphQL schema created by [Tuql](https://github.com/bradleyboy/tuql),
based on an SQLite database schema or an SQL dump file.

To get started, install the handler library:

```sh npm2yarn
npm i @graphql-mesh/tuql
```

Now, you can use it directly in your Mesh config file:

```yaml filename=".meshrc.yaml" {4-5}
sources:
  - name: MyDb
    handler:
      tuql:
        db: path/to/database.sqlite
```

And also you can create an in-memory database using an SQL dump file;

```yaml filename=".meshrc.yaml" {5}
sources:
  - name: MyDb
    handler:
      tuql:
        infile: path/to/db_dump.sql
```

## CodeSandBox Example

You can check out our example that uses Tuql Handler.

<iframe
  src="https://codesandbox.io/embed/github/ardatan/graphql-mesh/tree/master/examples/sqlite-chinook?fontsize=14&hidenavigation=1&theme=dark&module=%2F.meshrc.yml"
  className="mt-6 w-full h-[500px] rounded-md"
  title="chinook-example"
  allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
  sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
/>

## Config API Reference

import API from '../../../generated-markdown/TuqlHandler.generated.md'

<API />
