@platformatic/db-core
v2.16.0
Published
This modules wraps [`@platformatic/sql-mapper`](https://www.npmjs.com/package/@platformatic/sql-mapper), [`@platformatic/sql-graphql`](https://www.npmjs.com/package/@platformatic/sql-graphql) and [`@platformatic/sql-openapi`](https://www.npmjs.com/package
Downloads
119,696
Keywords
Readme
@platformatic/db-core
This modules wraps @platformatic/sql-mapper
,
@platformatic/sql-graphql
and
@platformatic/sql-openapi
in a convenient Fastify
plugin.
Check out the full documentation for Platformatic DB on our website.
Install
npm install @platformatic/db-core
Usage
import fastify from 'fastify'
import db from '@platformatic/db-core'
const app = Fastify()
app.register(db, {
// connectionString: 'postgres://postgres:[email protected]/postgres'
// connectionString: 'mysql://[email protected]:3307/graph'
connectionString: 'sqlite://:memory:'
})
License
Apache 2.0