@mikro-orm/sqlite
Advanced tools
+3
-3
| { | ||
| "name": "@mikro-orm/sqlite", | ||
| "version": "7.0.2-dev.13", | ||
| "version": "7.0.2-dev.14", | ||
| "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@mikro-orm/sql": "7.0.2-dev.13", | ||
| "@mikro-orm/sql": "7.0.2-dev.14", | ||
| "better-sqlite3": "12.6.2", | ||
@@ -59,3 +59,3 @@ "kysely": "0.28.11" | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.0.2-dev.13" | ||
| "@mikro-orm/core": "7.0.2-dev.14" | ||
| }, | ||
@@ -62,0 +62,0 @@ "engines": { |
| import { BaseSqliteConnection, type Dictionary } from '@mikro-orm/sql'; | ||
| import { type Dialect } from 'kysely'; | ||
| /** SQLite database connection using the `better-sqlite3` driver. */ | ||
| export declare class SqliteConnection extends BaseSqliteConnection { | ||
@@ -4,0 +5,0 @@ private database; |
| import { BaseSqliteConnection } from '@mikro-orm/sql'; | ||
| import { SqliteDialect } from 'kysely'; | ||
| import Database from 'better-sqlite3'; | ||
| /** SQLite database connection using the `better-sqlite3` driver. */ | ||
| export class SqliteConnection extends BaseSqliteConnection { | ||
@@ -5,0 +6,0 @@ database; |
@@ -5,2 +5,3 @@ import type { Configuration, Constructor } from '@mikro-orm/core'; | ||
| import { SqliteMikroORM } from './SqliteMikroORM.js'; | ||
| /** Database driver for SQLite using better-sqlite3. */ | ||
| export declare class SqliteDriver extends AbstractSqlDriver<SqliteConnection> { | ||
@@ -7,0 +8,0 @@ constructor(config: Configuration); |
+1
-0
| import { AbstractSqlDriver, SqlitePlatform } from '@mikro-orm/sql'; | ||
| import { SqliteConnection } from './SqliteConnection.js'; | ||
| import { SqliteMikroORM } from './SqliteMikroORM.js'; | ||
| /** Database driver for SQLite using better-sqlite3. */ | ||
| export class SqliteDriver extends AbstractSqlDriver { | ||
@@ -5,0 +6,0 @@ constructor(config) { |
| import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core'; | ||
| import type { SqlEntityManager } from '@mikro-orm/sql'; | ||
| import { SqliteDriver } from './SqliteDriver.js'; | ||
| /** Configuration options for the SQLite driver. */ | ||
| export type SqliteOptions<EM extends SqlEntityManager<SqliteDriver> = SqlEntityManager<SqliteDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Partial<Options<SqliteDriver, EM, Entities>>; | ||
| /** Creates a type-safe configuration object for the SQLite driver. */ | ||
| export declare function defineSqliteConfig<EM extends SqlEntityManager<SqliteDriver> = SqlEntityManager<SqliteDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Partial<Options<SqliteDriver, EM, Entities>>): Partial<Options<SqliteDriver, EM, Entities>>; | ||
@@ -6,0 +8,0 @@ /** |
| import { defineConfig, MikroORM, } from '@mikro-orm/core'; | ||
| import { SqliteDriver } from './SqliteDriver.js'; | ||
| /** Creates a type-safe configuration object for the SQLite driver. */ | ||
| export function defineSqliteConfig(options) { | ||
@@ -4,0 +5,0 @@ return defineConfig({ driver: SqliteDriver, ...options }); |
17066
2.67%105
7.14%+ Added
+ Added
- Removed
- Removed
Updated