Skip to content
better-sqlite3 driver for typeorm
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example
src
.gitignore
CNAME
LICENSE
README.md
package-lock.json
package.json
tsconfig.json

README.md

typeorm-better-sqlite3

Github

Performant better-sqlite3 driver for Typeorm.

It's 10x or even 18x faster for some cases - link

Usage

import { Connection, createConnection } from 'typeorm';
import { OrmService } from '@pencroff/typeorm-better-sqlite3';

async function run() {
    const orm = new OrmService();
    const con = await createConnection();
    await orm.useConnection(con);
    const repo = orm.getRepo(SomeModel);
    const result: SomeModel[] = await repo.find({
      where: {
        fieldA: 'abd',
        fieldB: 123,
      },
    })
}

for more details please check example folder

Instalation notes

It requires building tools and Python 2 (should be >=2.6.0 <3.0.0).

Python 2 can be used from folder "C:\Python27\python.exe"

Make sure - sqlite3 package required for migrations

You can’t perform that action at this time.