Skip to content

Provide custom drivers support and split different databases into sub-packages #2479

@pleerock

Description

@pleerock
  1. Provide a way to create custom driver more easily
  2. Think if we can split different drivers into their own packages, e.g. @typeorm/mysql, @typeorm/postgres, @typeorm/sqlite, @typeorm/sqljs-node, @typeorm/sqljs-browser
    2.1. Think if we need a @typeorm/core

The reason behind #1 is not to have new drivers like #2240 but instead have a flexible mechanizm to allow users to create their own drivers.

The reasons behind #2 are numerous. It will allow us to make a specific functionalities in their own packages, pack their own drivers with the packages, etc.

Think if we need a @typeorm/core

some implementation detail, let's say do we want to have Entity inside core or inside each driver. If we do it inside core then it will be possible to use those entities across different drivers, if we do it inside their own packages then we'll be able to "give" additional functionality.

We already had multiple discussions before, I'll need to find all related issues and link them here.

adding @daniel-lang

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions