Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @skyra/orm

@skyra/orm

Total alerts Language grade: JavaScript

An ORM designed for performance and minimality, with inspiration from EntityFramework and SettingsGateway.

About

This is the primary pacakge of the @skyra/orm package collection. It has all the ORM functions and decorators that you will need in your project. Along with this package you will need to install a database driver, the following are available

Buy us some doughnuts

Skyra Project is open source and always will be, even if we don't get donations. That said, we know there are amazing people who may still want to donate just to show their appreciation. Thanks you very much in advance!

We accept donations through Patreon, BitCoin, Ethereum, and Litecoin. You can use the buttoms below to donate through your method of choice.

Donate With QR Address
Patreon PatreonImage Click Here
PayPal PayPalImage Click Here
BitCoin BitcoinImage 3JNzCHMTFtxYFWBnVtDM9Tt34zFbKvdwco
Ethereum EthereumImage 0xcB5EDB76Bc9E389514F905D9680589004C00190c
Litecoin LitecoinImage MNVT1keYGMfGp7vWmcYjCS8ntU8LNvjnqM

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Antonio RomΓ‘n

πŸ’» πŸ€” πŸ“†

Jeroen Claassens

πŸ’» πŸš‡

Skyra

πŸ“–

Tyler Richards

πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

Index

References

BaseDriver

Re-exports BaseDriver

BaseEntity

Re-exports BaseEntity

BaseRepository

Re-exports BaseRepository

Column

Re-exports Column

ColumnSettings

Re-exports ColumnSettings

DriverAlreadyConnectedError

Re-exports DriverAlreadyConnectedError

DriverAlreadyDisconnectedError

Re-exports DriverAlreadyDisconnectedError

DriverManager

Re-exports DriverManager

Entity

Re-exports Entity

EntityManager

Re-exports EntityManager

EntitySettings

Re-exports EntitySettings

GeneratedColumn

Re-exports GeneratedColumn

InvalidColumnNameError

Re-exports InvalidColumnNameError

InvalidEntityConstructorError

Re-exports InvalidEntityConstructorError

InvalidRepositoryConstructorError

Re-exports InvalidRepositoryConstructorError

JoinColumn

Re-exports JoinColumn

ManyToMany

Re-exports ManyToMany

ManyToOne

Re-exports ManyToOne

OneToMany

Re-exports OneToMany

OneToOne

Re-exports OneToOne

PrimaryColumn

Re-exports PrimaryColumn

PrimaryGeneratedColumn

Re-exports PrimaryGeneratedColumn

Repository

Re-exports Repository

RepositoryManager

Re-exports RepositoryManager

RepositoryManagerSettings

Re-exports RepositoryManagerSettings

RepositorySettings

Re-exports RepositorySettings

kColumnProperty

Re-exports kColumnProperty

kEntityProperty

Re-exports kEntityProperty

kRepositoryProperty

Re-exports kRepositoryProperty

Type aliases

Arr

Arr: keyof unknown[]

Ctor

Ctor<A, R>: {}

Type parameters

Type declaration

Fn

Fn<A, R>: (...args: A) => R

Type parameters

Type declaration

    • (...args: A): R
    • Parameters

      • Rest ...args: A

      Returns R

Variables

Const kColumnProperty

kColumnProperty: unique symbol = Symbol('column-names-decorator')

Const kEntityProperty

kEntityProperty: unique symbol = Symbol('entity-decorator')

Const kRepositoryProperty

kRepositoryProperty: unique symbol = Symbol('repository-decorator')

Const loadModule

loadModule: NodeRequire = require

Functions

Column

  • Column(): MethodDecorator

Entity

  • Entity(name: string): ClassDecorator

GeneratedColumn

  • GeneratedColumn(): MethodDecorator

JoinColumn

  • JoinColumn(): MethodDecorator

ManyToMany

  • ManyToMany(): MethodDecorator

ManyToOne

  • ManyToOne(): MethodDecorator

OneToMany

  • OneToMany(): MethodDecorator

OneToOne

  • OneToOne(): MethodDecorator

PrimaryColumn

  • PrimaryColumn(): MethodDecorator

PrimaryGeneratedColumn

  • PrimaryGeneratedColumn(): MethodDecorator

Repository

  • Repository(name: string): ClassDecorator

classExtends

  • classExtends<T>(value: Ctor, base: T): value is T

isClass

  • isClass(value: unknown): value is Ctor

map

  • map<V, R>(iterator: IterableIterator<V>, cb: (value: V) => R): R[]
  • Type parameters

    • V

    • R

    Parameters

    • iterator: IterableIterator<V>
    • cb: (value: V) => R
        • (value: V): R
        • Parameters

          • value: V

          Returns R

    Returns R[]

scanExportClasses

  • scanExportClasses<T>(exports: Record<string, unknown>, ctor: T): T[]

Generated using TypeDoc