@rwillians/qx 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rwillians/qx",
3
3
  "description": "A teeny tiny ORM for SQLite.",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "author": "Rafael Willians <me@rwillians.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -25,16 +25,19 @@
25
25
  "files": ["dist/", "LICENSE"],
26
26
  "exports": {
27
27
  ".": {
28
+ "types": "./dist/types/index.d.ts",
28
29
  "import": "./dist/esm/index.js",
29
30
  "require": "./dist/cjs/index.js",
30
31
  "default": "./dist/cjs/index.js"
31
32
  },
32
33
  "./bun-sqlite": {
34
+ "types": "./dist/types/bun-sqlite.d.ts",
33
35
  "import": "./dist/esm/bun-sqlite.js",
34
36
  "require": "./dist/cjs/bun-sqlite.js",
35
37
  "default": "./dist/cjs/bun-sqlite.js"
36
38
  },
37
39
  "./pretty-logger": {
40
+ "types": "./dist/types/pretty-logger.d.ts",
38
41
  "import": "./dist/esm/pretty-logger.js",
39
42
  "require": "./dist/cjs/pretty-logger.js",
40
43
  "default": "./dist/cjs/pretty-logger.js"
@@ -1,47 +0,0 @@
1
- import { Database } from 'bun:sqlite';
2
- import { type CreateTableStatement, type IDatabase, type ILogger, type InsertStatement, type SelectStatement } from './index';
3
- /**
4
- * @private Bun SQLite database adapter implementation.
5
- * @since 0.1.0
6
- * @version 1
7
- */
8
- declare class BunSQLite implements IDatabase {
9
- private conn;
10
- private loggers;
11
- constructor(conn: Database, loggers?: ILogger[]);
12
- /**
13
- * @public Attaches a logger to the database instance.
14
- * @since 0.1.0
15
- * @version 1
16
- */
17
- attachLogger(logger: ILogger): this;
18
- /**
19
- * @public Executes a create table statement.
20
- * @since 0.1.0
21
- * @version 1
22
- */
23
- createTable(op: CreateTableStatement): Promise<void>;
24
- /**
25
- * @public Executes an insert statement.
26
- * @since 0.1.0
27
- * @version 1
28
- */
29
- insert(op: InsertStatement): Promise<{
30
- [k: string]: any;
31
- }[]>;
32
- /**
33
- * @public Executes a select statement.
34
- * @since 0.1.0
35
- * @version 1
36
- */
37
- query(op: SelectStatement): Promise<{
38
- [k: string]: any;
39
- }[]>;
40
- }
41
- /**
42
- * @public Creates a connection to the database.
43
- * @since 0.1.0
44
- * @version 1
45
- */
46
- declare const connect: (...args: ConstructorParameters<typeof Database>) => BunSQLite;
47
- export { connect, };