rado 0.1.7 → 0.1.9
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/dist/Column.d.ts +54 -49
- package/dist/Column.js +2 -0
- package/dist/Cursor.d.ts +77 -77
- package/dist/Cursor.js +3 -1
- package/dist/Driver.d.ts +89 -89
- package/dist/Expr.d.ts +149 -149
- package/dist/Fields.d.ts +11 -9
- package/dist/Formatter.d.ts +55 -55
- package/dist/Functions.d.ts +7 -8
- package/dist/Id.d.ts +3 -0
- package/dist/Id.js +0 -0
- package/dist/Ops.d.ts +8 -8
- package/dist/OrderBy.d.ts +9 -9
- package/dist/Param.d.ts +15 -15
- package/dist/Query.d.ts +107 -107
- package/dist/Sanitizer.d.ts +4 -4
- package/dist/Schema.d.ts +23 -23
- package/dist/Selection.d.ts +20 -20
- package/dist/Statement.d.ts +57 -57
- package/dist/Table.d.ts +56 -50
- package/dist/Table.js +3 -1
- package/dist/Target.d.ts +30 -30
- package/dist/Update.d.ts +4 -4
- package/dist/driver/better-sqlite3.d.ts +17 -17
- package/dist/driver/sql.js.d.ts +17 -17
- package/dist/driver/sqlite3.d.ts +20 -20
- package/dist/index.d.ts +19 -18
- package/dist/index.js +1 -0
- package/dist/sqlite/SqliteFormatter.d.ts +11 -9
- package/dist/sqlite/SqliteFormatter.js +18 -0
- package/dist/sqlite/SqliteFunctions.d.ts +150 -148
- package/dist/sqlite/SqliteSchema.d.ts +24 -24
- package/dist/sqlite/index.d.ts +2 -2
- package/package.json +48 -47
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { SchemaInstructions } from '../Schema';
|
|
2
|
-
import { Statement } from '../Statement';
|
|
3
|
-
export declare namespace SqliteSchema {
|
|
4
|
-
type Column = {
|
|
5
|
-
cid: number;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
notnull: number;
|
|
9
|
-
dflt_value: string | null;
|
|
10
|
-
pk: number;
|
|
11
|
-
};
|
|
12
|
-
interface Index {
|
|
13
|
-
type: 'index';
|
|
14
|
-
name: string;
|
|
15
|
-
tbl_name: string;
|
|
16
|
-
rootpage: number;
|
|
17
|
-
sql: string;
|
|
18
|
-
}
|
|
19
|
-
function tableData(tableName: string): Statement;
|
|
20
|
-
function indexData(tableName: string): Statement;
|
|
21
|
-
function createInstructions(columnData: Array<Column>, indexData: Array<Index>): SchemaInstructions | undefined;
|
|
22
|
-
function columnInstruction(column: Column): [string, string];
|
|
23
|
-
function indexInstruction(index: Index): [string, string];
|
|
24
|
-
}
|
|
1
|
+
import { SchemaInstructions } from '../Schema';
|
|
2
|
+
import { Statement } from '../Statement';
|
|
3
|
+
export declare namespace SqliteSchema {
|
|
4
|
+
type Column = {
|
|
5
|
+
cid: number;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
notnull: number;
|
|
9
|
+
dflt_value: string | null;
|
|
10
|
+
pk: number;
|
|
11
|
+
};
|
|
12
|
+
interface Index {
|
|
13
|
+
type: 'index';
|
|
14
|
+
name: string;
|
|
15
|
+
tbl_name: string;
|
|
16
|
+
rootpage: number;
|
|
17
|
+
sql: string;
|
|
18
|
+
}
|
|
19
|
+
function tableData(tableName: string): Statement;
|
|
20
|
+
function indexData(tableName: string): Statement;
|
|
21
|
+
function createInstructions(columnData: Array<Column>, indexData: Array<Index>): SchemaInstructions | undefined;
|
|
22
|
+
function columnInstruction(column: Column): [string, string];
|
|
23
|
+
function indexInstruction(index: Index): [string, string];
|
|
24
|
+
}
|
package/dist/sqlite/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SqliteFormatter';
|
|
2
|
-
export * from './SqliteFunctions';
|
|
1
|
+
export * from './SqliteFormatter';
|
|
2
|
+
export * from './SqliteFunctions';
|
package/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rado",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./dist/index.js",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"@types/
|
|
29
|
-
"@types/
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "rado",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.js",
|
|
8
|
+
"./sqlite": "./dist/sqlite/index.js",
|
|
9
|
+
"./*": "./dist/*.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
"*": {
|
|
17
|
+
"*": [
|
|
18
|
+
"./dist/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.build.json && tsx build.ts",
|
|
24
|
+
"test": "tsx test",
|
|
25
|
+
"prepublishOnly": "tsc -p tsconfig.build.json && tsx build.ts"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/better-sqlite3": "^5.4.1",
|
|
29
|
+
"@types/glob": "^8.0.0",
|
|
30
|
+
"@types/sql.js": "^1.4.2",
|
|
31
|
+
"better-sqlite3": "^7.5.1",
|
|
32
|
+
"esbuild": "^0.16.16",
|
|
33
|
+
"glob": "^8.0.3",
|
|
34
|
+
"sade": "^1.8.1",
|
|
35
|
+
"sql.js": "^1.8.0",
|
|
36
|
+
"sqlite3": "^5.1.4",
|
|
37
|
+
"tsx": "^3.12.1",
|
|
38
|
+
"typescript": "next",
|
|
39
|
+
"uvu": "^0.5.6"
|
|
40
|
+
},
|
|
41
|
+
"volta": {
|
|
42
|
+
"node": "18.12.1"
|
|
43
|
+
},
|
|
44
|
+
"packageManager": "yarn@3.3.1",
|
|
45
|
+
"resolutions": {
|
|
46
|
+
"esbuild": "0.16.16"
|
|
47
|
+
}
|
|
48
|
+
}
|