type safe SQL for TypeScript/JavaScript
To use litdb with your favorite ORM, no driver is required. Just use the litdb package directly:
litdb is also available as a module, where it can be used directly in the browser:
<script type="module">
import { sqlite as $ } from "https://unpkg.com/litdb/dist/index.min.js"
const { sql, params } = $.from(Contact).select(c => $`${c.name}`).build()
</script>
To get the most out of litdb we recommend using text editors that supports TypeScript definitions
(e.g. VS Code, JetBrains IDEs, neovim, etc....
Read more at litdb.dev