@ghostpaw/affinity 0.2.4 → 0.4.0

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.
@@ -0,0 +1,19 @@
1
+ interface AffinityRunResult {
2
+ lastInsertRowid: number | bigint;
3
+ changes?: number | bigint | undefined;
4
+ }
5
+ interface AffinityStatement {
6
+ run(...params: unknown[]): AffinityRunResult;
7
+ get<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord | undefined;
8
+ all<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord[];
9
+ }
10
+ /**
11
+ * SQLite dependency injected into every affinity operation.
12
+ */
13
+ type AffinityDb = {
14
+ exec(sql: string): void;
15
+ prepare(sql: string): AffinityStatement;
16
+ close(): void;
17
+ };
18
+
19
+ export type { AffinityDb as A };
@@ -0,0 +1,19 @@
1
+ interface AffinityRunResult {
2
+ lastInsertRowid: number | bigint;
3
+ changes?: number | bigint | undefined;
4
+ }
5
+ interface AffinityStatement {
6
+ run(...params: unknown[]): AffinityRunResult;
7
+ get<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord | undefined;
8
+ all<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord[];
9
+ }
10
+ /**
11
+ * SQLite dependency injected into every affinity operation.
12
+ */
13
+ type AffinityDb = {
14
+ exec(sql: string): void;
15
+ prepare(sql: string): AffinityStatement;
16
+ close(): void;
17
+ };
18
+
19
+ export type { AffinityDb as A };
package/dist/index.d.cts CHANGED
@@ -1,20 +1,4 @@
1
- interface AffinityRunResult {
2
- lastInsertRowid: number | bigint;
3
- changes?: number | bigint | undefined;
4
- }
5
- interface AffinityStatement {
6
- run(...params: unknown[]): AffinityRunResult;
7
- get<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord | undefined;
8
- all<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord[];
9
- }
10
- /**
11
- * SQLite dependency injected into every affinity operation.
12
- */
13
- type AffinityDb = {
14
- exec(sql: string): void;
15
- prepare(sql: string): AffinityStatement;
16
- close(): void;
17
- };
1
+ import { A as AffinityDb } from './database-C__PzPpi.cjs';
18
2
 
19
3
  /**
20
4
  * Creates the full standalone affinity public schema (contacts through attributes).
package/dist/index.d.ts CHANGED
@@ -1,20 +1,4 @@
1
- interface AffinityRunResult {
2
- lastInsertRowid: number | bigint;
3
- changes?: number | bigint | undefined;
4
- }
5
- interface AffinityStatement {
6
- run(...params: unknown[]): AffinityRunResult;
7
- get<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord | undefined;
8
- all<TRecord = Record<string, unknown>>(...params: unknown[]): TRecord[];
9
- }
10
- /**
11
- * SQLite dependency injected into every affinity operation.
12
- */
13
- type AffinityDb = {
14
- exec(sql: string): void;
15
- prepare(sql: string): AffinityStatement;
16
- close(): void;
17
- };
1
+ import { A as AffinityDb } from './database-C__PzPpi.js';
18
2
 
19
3
  /**
20
4
  * Creates the full standalone affinity public schema (contacts through attributes).