@lbu/store
Advanced tools
Comparing version 0.0.89 to 0.0.90
{ | ||
"name": "@lbu/store", | ||
"version": "0.0.89", | ||
"version": "0.0.90", | ||
"description": "Postgres & S3-compatible wrappers for common things", | ||
@@ -18,4 +18,4 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@lbu/insight": "0.0.89", | ||
"@lbu/stdlib": "0.0.89", | ||
"@lbu/insight": "0.0.90", | ||
"@lbu/stdlib": "0.0.90", | ||
"@types/minio": "7.0.6", | ||
@@ -47,3 +47,3 @@ "mime-types": "2.1.27", | ||
}, | ||
"gitHead": "96683eacc77885317739cc1dc3a30d58c74324c7" | ||
"gitHead": "33c0d43ac9fa2eefd5aa6a623e931185df4f380c" | ||
} |
@@ -74,2 +74,5 @@ // Generated by @lbu/code-gen | ||
export function fileInsert(sql, insert) { | ||
if (insert === undefined || insert.length === 0) { | ||
return []; | ||
} | ||
return query` | ||
@@ -158,2 +161,5 @@ INSERT INTO "file" (${fileFields("", { excludePrimaryKey: true })}) | ||
export function fileGroupInsert(sql, insert) { | ||
if (insert === undefined || insert.length === 0) { | ||
return []; | ||
} | ||
return query` | ||
@@ -281,2 +287,5 @@ INSERT INTO "fileGroup" (${fileGroupFields("", { excludePrimaryKey: true })}) | ||
export function jobInsert(sql, insert) { | ||
if (insert === undefined || insert.length === 0) { | ||
return []; | ||
} | ||
return query` | ||
@@ -345,2 +354,5 @@ INSERT INTO "job" (${jobFields("", { excludePrimaryKey: true })}) | ||
export function sessionInsert(sql, insert) { | ||
if (insert === undefined || insert.length === 0) { | ||
return []; | ||
} | ||
return query` | ||
@@ -347,0 +359,0 @@ INSERT INTO "session" (${sessionFields("", { excludePrimaryKey: true })}) |
@@ -5,3 +5,3 @@ // Generated by @lbu/code-gen | ||
export const storeStructureString = | ||
'{"jobInterval":{"type":"object","group":"store","name":"jobInterval","docString":"","isOptional":false,"validator":{"strict":true},"keys":{"years":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"months":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"days":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"hours":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"minutes":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"seconds":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}}},"relations":[],"uniqueName":"StoreJobInterval"},"file":{"type":"object","group":"store","name":"file","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"withPrimaryKey":true},"keys":{"bucketName":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1},"sql":{"searchable":true}},"contentLength":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false}},"contentType":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"name":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"meta":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileMeta","uniqueName":"StoreFileMeta"}}},"relations":[],"uniqueName":"StoreFile"},"fileGroup":{"type":"object","group":"store","name":"fileGroup","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"withPrimaryKey":true},"keys":{"name":{"type":"string","docString":"","isOptional":true,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"order":{"type":"number","docString":"Hack to get an increasing integer by default","isOptional":true,"defaultValue":"Math.floor(Date.now() / 1000000)","validator":{"convert":false,"floatingPoint":false}},"meta":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroupMeta","uniqueName":"StoreFileGroupMeta"}}},"relations":[{"type":"relation","subType":"oneToOne","ownKey":"file","referencedKey":"group","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"file","uniqueName":"StoreFile"}}},{"type":"relation","subType":"manyToOne","ownKey":"parent","referencedKey":"children","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroup","uniqueName":"StoreFileGroup"}}},{"type":"relation","subType":"oneToMany","ownKey":"children","reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroup","uniqueName":"StoreFileGroup"}}}],"uniqueName":"StoreFileGroup"},"fileGroupView":{"type":"object","group":"store","name":"fileGroupView","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"isView":true,"withPrimaryKey":true},"keys":{"name":{"type":"string","docString":"","isOptional":true,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"order":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false}},"meta":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroupMeta","uniqueName":"StoreFileGroupMeta"}},"isDirectory":{"type":"boolean","docString":"","isOptional":false,"validator":{"convert":false},"sql":{"searchable":true}}},"relations":[{"type":"relation","subType":"oneToOne","ownKey":"file","referencedKey":"groupView","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"file","uniqueName":"StoreFile"}}},{"type":"relation","subType":"manyToOne","ownKey":"parent","referencedKey":"children","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroupView","uniqueName":"StoreFileGroupView"}}},{"type":"relation","subType":"oneToMany","ownKey":"children","reference":{"type":"reference","docString":"","isOptional":false,"reference":{"group":"store","name":"fileGroupView","uniqueName":"StoreFileGroupView"}}}],"uniqueName":"StoreFileGroupView"},"session":{"type":"object","group":"store","name":"session","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withDates":true,"withPrimaryKey":true},"keys":{"expires":{"type":"date","docString":"","isOptional":false,"sql":{"searchable":true}},"data":{"type":"any","docString":"","isOptional":true,"defaultValue":"{}"}},"relations":[],"uniqueName":"StoreSession"},"job":{"type":"object","group":"store","name":"job","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withDates":true,"withPrimaryKey":true},"keys":{"id":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false},"sql":{"searchable":true,"primary":true}},"isComplete":{"type":"boolean","docString":"","isOptional":true,"defaultValue":"false","validator":{"convert":false},"sql":{"searchable":true}},"priority":{"type":"number","docString":"","isOptional":true,"defaultValue":"0","validator":{"convert":false,"floatingPoint":false}},"scheduledAt":{"type":"date","docString":"","isOptional":true,"defaultValue":"(new Date())","sql":{"searchable":true}},"name":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1},"sql":{"searchable":true}},"data":{"type":"any","docString":"","isOptional":true,"defaultValue":"{}"}},"relations":[],"uniqueName":"StoreJob"},"fileMeta":{"type":"object","group":"store","name":"fileMeta","docString":"User definable, optional object to store whatever you want","isOptional":true,"defaultValue":"{}","validator":{"strict":true},"keys":{},"relations":[],"uniqueName":"StoreFileMeta"},"fileGroupMeta":{"type":"object","group":"store","name":"fileGroupMeta","docString":"User definable, optional object to store whatever you want","isOptional":true,"defaultValue":"{}","validator":{"strict":true},"keys":{},"relations":[],"uniqueName":"StoreFileGroupMeta"}}'; | ||
'{"jobInterval":{"type":"object","group":"store","name":"jobInterval","docString":"","isOptional":false,"validator":{"strict":true},"keys":{"years":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"months":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"days":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"hours":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"minutes":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}},"seconds":{"type":"number","docString":"","isOptional":true,"validator":{"convert":false,"floatingPoint":false}}},"relations":[],"uniqueName":"StoreJobInterval"},"file":{"type":"object","group":"store","name":"file","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"withPrimaryKey":true},"keys":{"bucketName":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1},"sql":{"searchable":true}},"contentLength":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false}},"contentType":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"name":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"meta":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileMeta","uniqueName":"StoreFileMeta"}}},"relations":[],"uniqueName":"StoreFile"},"fileGroup":{"type":"object","group":"store","name":"fileGroup","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"withPrimaryKey":true},"keys":{"name":{"type":"string","docString":"","isOptional":true,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"order":{"type":"number","docString":"Hack to get an increasing integer by default","isOptional":true,"defaultValue":"Math.floor(Date.now() / 1000000)","validator":{"convert":false,"floatingPoint":false}},"meta":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroupMeta","uniqueName":"StoreFileGroupMeta"}}},"relations":[{"type":"relation","subType":"oneToOne","ownKey":"file","referencedKey":"group","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"file","uniqueName":"StoreFile"}}},{"type":"relation","subType":"manyToOne","ownKey":"parent","referencedKey":"children","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroup","uniqueName":"StoreFileGroup"}}},{"type":"relation","subType":"oneToMany","ownKey":"children","reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroup","uniqueName":"StoreFileGroup"}}}],"uniqueName":"StoreFileGroup"},"fileGroupView":{"type":"object","group":"store","name":"fileGroupView","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withSoftDeletes":true,"isView":true,"withPrimaryKey":true},"keys":{"name":{"type":"string","docString":"","isOptional":true,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1}},"order":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false}},"meta":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroupMeta","uniqueName":"StoreFileGroupMeta"}},"isDirectory":{"type":"boolean","docString":"","isOptional":false,"validator":{"convert":false},"sql":{"searchable":true}}},"relations":[{"type":"relation","subType":"oneToOne","ownKey":"file","referencedKey":"groupView","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"file","uniqueName":"StoreFile"}}},{"type":"relation","subType":"manyToOne","ownKey":"parent","referencedKey":"children","isOptional":true,"reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroupView","uniqueName":"StoreFileGroupView"}}},{"type":"relation","subType":"oneToMany","ownKey":"children","reference":{"type":"reference","docString":"","isOptional":false,"validator":{},"reference":{"group":"store","name":"fileGroupView","uniqueName":"StoreFileGroupView"}}}],"uniqueName":"StoreFileGroupView"},"session":{"type":"object","group":"store","name":"session","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withDates":true,"withPrimaryKey":true},"keys":{"expires":{"type":"date","docString":"","isOptional":false,"validator":{},"sql":{"searchable":true}},"data":{"type":"any","docString":"","isOptional":true,"defaultValue":"{}","validator":{}}},"relations":[],"uniqueName":"StoreSession"},"job":{"type":"object","group":"store","name":"job","docString":"","isOptional":false,"validator":{"strict":true},"enableQueries":true,"queryOptions":{"withDates":true,"withPrimaryKey":true},"keys":{"id":{"type":"number","docString":"","isOptional":false,"validator":{"convert":false,"floatingPoint":false},"sql":{"searchable":true,"primary":true}},"isComplete":{"type":"boolean","docString":"","isOptional":true,"defaultValue":"false","validator":{"convert":false},"sql":{"searchable":true}},"priority":{"type":"number","docString":"","isOptional":true,"defaultValue":"0","validator":{"convert":false,"floatingPoint":false}},"scheduledAt":{"type":"date","docString":"","isOptional":true,"defaultValue":"(new Date())","validator":{},"sql":{"searchable":true}},"name":{"type":"string","docString":"","isOptional":false,"validator":{"convert":false,"trim":false,"lowerCase":false,"upperCase":false,"min":1},"sql":{"searchable":true}},"data":{"type":"any","docString":"","isOptional":true,"defaultValue":"{}","validator":{}}},"relations":[],"uniqueName":"StoreJob"},"fileMeta":{"type":"object","group":"store","name":"fileMeta","docString":"User definable, optional object to store whatever you want","isOptional":true,"defaultValue":"{}","validator":{"strict":true},"keys":{},"relations":[],"uniqueName":"StoreFileMeta"},"fileGroupMeta":{"type":"object","group":"store","name":"fileGroupMeta","docString":"User definable, optional object to store whatever you want","isOptional":true,"defaultValue":"{}","validator":{"strict":true},"keys":{},"relations":[],"uniqueName":"StoreFileGroupMeta"}}'; | ||
export const storeStructure = JSON.parse(storeStructureString); |
@@ -16,2 +16,3 @@ // Generated by @lbu/code-gen | ||
* @name StoreFileGroupMeta | ||
* User definable, optional object to store whatever you want | ||
* @typedef {{}} | ||
@@ -25,2 +26,3 @@ */ | ||
* @name StoreFileMeta | ||
* User definable, optional object to store whatever you want | ||
* @typedef {{}} | ||
@@ -27,0 +29,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169714
4974
+ Added@lbu/insight@0.0.90(transitive)
+ Added@lbu/stdlib@0.0.90(transitive)
- Removed@lbu/insight@0.0.89(transitive)
- Removed@lbu/stdlib@0.0.89(transitive)
Updated@lbu/insight@0.0.90
Updated@lbu/stdlib@0.0.90