@wxn0brp/db-core 0.0.5 → 0.0.6
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/db/valthera.d.ts +2 -2
- package/dist/types/valthera.d.ts +3 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/db/valthera.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare class ValtheraClass implements ValtheraCompatible {
|
|
|
37
37
|
/**
|
|
38
38
|
* Add data to a database.
|
|
39
39
|
*/
|
|
40
|
-
add<T = Data>(collection: string, data: Arg
|
|
40
|
+
add<T = Data>(collection: string, data: Arg<T>, id_gen?: boolean): Promise<T>;
|
|
41
41
|
/**
|
|
42
42
|
* Find data in a database.
|
|
43
43
|
*/
|
|
@@ -45,7 +45,7 @@ declare class ValtheraClass implements ValtheraCompatible {
|
|
|
45
45
|
/**
|
|
46
46
|
* Find one data entry in a database.
|
|
47
47
|
*/
|
|
48
|
-
findOne<T = Data>(collection: string, search: Search<T>, context?: VContext, findOpts?: FindOpts): Promise<T>;
|
|
48
|
+
findOne<T = Data>(collection: string, search: Search<T>, context?: VContext, findOpts?: FindOpts<T>): Promise<T>;
|
|
49
49
|
/**
|
|
50
50
|
* Update data in a database.
|
|
51
51
|
*/
|
package/dist/types/valthera.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export interface ValtheraCompatible {
|
|
|
9
9
|
getCollections(): Promise<string[]>;
|
|
10
10
|
checkCollection(collection: string): Promise<boolean>;
|
|
11
11
|
issetCollection(collection: string): Promise<boolean>;
|
|
12
|
-
add<T = Data>(collection: string, data: Arg
|
|
13
|
-
find<T = Data>(collection: string, search: Search<T>, context?: VContext, options?: DbFindOpts
|
|
14
|
-
findOne<T = Data>(collection: string, search: Search<T>, context?: VContext, findOpts?: FindOpts): Promise<T | null>;
|
|
12
|
+
add<T = Data>(collection: string, data: Arg<T>, id_gen?: boolean): Promise<T>;
|
|
13
|
+
find<T = Data>(collection: string, search: Search<T>, context?: VContext, options?: DbFindOpts<T>, findOpts?: FindOpts<T>): Promise<T[]>;
|
|
14
|
+
findOne<T = Data>(collection: string, search: Search<T>, context?: VContext, findOpts?: FindOpts<T>): Promise<T | null>;
|
|
15
15
|
update<T = Data>(collection: string, search: Search<T>, updater: Updater<T>, context?: VContext): Promise<boolean>;
|
|
16
16
|
updateOne<T = Data>(collection: string, search: Search<T>, updater: Updater<T>, context?: VContext): Promise<boolean>;
|
|
17
17
|
remove<T = Data>(collection: string, search: Search<T>, context?: VContext): Promise<boolean>;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.0.
|
|
1
|
+
export const version = "0.0.6";
|