Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# fastify-typeorm
#

[![Package Version](https://img.shields.io/npm/v/fastify-typeorm-plugin.svg)](https://npm.im/fastify-typeorm-plugin)

[![Package Version](https://img.shields.io/npm/v/fastify-typeorm.svg)](https://npm.im/fastify-typeorm)
[![Build Status](https://travis-ci.org/inthepocket/fastify-typeorm-plugin.svg?branch=master)](https://travis-ci.org/inthepocket/fastify-typeorm-plugin)
[![Greenkeeper badge](https://badges.greenkeeper.io/inthepocket/fastify-typeorm-plugin.svg)](https://greenkeeper.io/)
[![Coverage Status](https://coveralls.io/repos/github/inthepocket/fastify-typeorm-plugin/badge.svg?branch=master)](https://coveralls.io/github/inthepocket/fastify-typeorm-plugin?branch=master)
Expand All @@ -11,7 +12,7 @@ Under the hood the official [TypeORM](https://www.npmjs.com/package/typeorm) mod
## Install

```sh
npm install fastify-typeorm-plugin
npm install fastify-typeorm
```

## Usage
Expand All @@ -24,7 +25,7 @@ const fastify = require('fastify')();

const user = require('./entity/user');

fastify.register(require('fastify-typeorm-plugin'), {
fastify.register(require('fastify-typeorm'), {
type: 'sqlite',
database: './mydb.sql',
});
Expand Down Expand Up @@ -53,7 +54,7 @@ const connection = await createConnection({
type: 'sqlite',
database: './mydb.sql',
});
fastify.register(require('fastify-typeorm-plugin'), {
fastify.register(require('fastify-typeorm'), {
connection,
});
```
Expand Down