@platformatic/db-core

2.35.1 • Public • Published

@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:postgres@127.0.0.1/postgres'
  // connectionString: 'mysql://root@127.0.0.1:3307/graph'
  connectionString: 'sqlite://:memory:'
})

License

Apache 2.0

Dependencies (5)

Dev Dependencies (6)

Package Sidebar

Install

npm i @platformatic/db-core

Weekly Downloads

36,075

Version

2.35.1

License

Apache-2.0

Unpacked Size

15.7 kB

Total Files

6

Last publish

Collaborators

  • mzugm
  • ivan-tymoshenko
  • marcopiraccini
  • leorossi
  • shogun_panda
  • matteo.collina
  • antoniosonis
  • qard