sedentary 0.0.51 → 0.0.52
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/cjs/db.js +3 -0
- package/dist/es/db.js +3 -0
- package/dist/types/db.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/db.js
CHANGED
|
@@ -57,6 +57,9 @@ function autoImplement() {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
class Table extends autoImplement() {
|
|
60
|
+
findAttribute(name) {
|
|
61
|
+
return this.attributes.filter(_ => _.attributeName === name)[0];
|
|
62
|
+
}
|
|
60
63
|
findField(name) {
|
|
61
64
|
return this.attributes.filter(_ => _.fieldName === name)[0];
|
|
62
65
|
}
|
package/dist/es/db.js
CHANGED
|
@@ -53,6 +53,9 @@ function autoImplement() {
|
|
|
53
53
|
export class Table extends autoImplement() {
|
|
54
54
|
autoIncrementOwn;
|
|
55
55
|
oid;
|
|
56
|
+
findAttribute(name) {
|
|
57
|
+
return this.attributes.filter(_ => _.attributeName === name)[0];
|
|
58
|
+
}
|
|
56
59
|
findField(name) {
|
|
57
60
|
return this.attributes.filter(_ => _.fieldName === name)[0];
|
|
58
61
|
}
|
package/dist/types/db.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ declare const Table_base: new (defaults?: ITable | undefined) => ITable;
|
|
|
82
82
|
export declare class Table extends Table_base {
|
|
83
83
|
autoIncrementOwn?: boolean;
|
|
84
84
|
oid?: number;
|
|
85
|
+
findAttribute(name: string): Attribute<unknown, unknown>;
|
|
85
86
|
findField(name: string): Attribute<unknown, unknown>;
|
|
86
87
|
}
|
|
87
88
|
export declare abstract class DB<T extends Transaction> {
|
package/package.json
CHANGED