MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / FetchSettings

Method FetchSettings

backend/Src/Services/SqliteAdapter.ts:362–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360 this.db.prepare(stmt + ' LIMIT @limit').all({ fromTm, limit });
361 }
362 public FetchSettings(): Settings {
363 return (this.db.prepare('SELECT * FROM settings')
364 .all() as SettingsItem[])
365 .reduce((o, x) => ({ ...o, [x.property]: JSON.parse(x.value) }),
366 { storageQuota: 0, instanceQuota: 0, downloadSpeedQuota: 0 });
367 }
368 public FetchArchiveTags() {
369 return this.db.prepare('SELECT archive.filename AS filename, tags.text AS tag FROM archiveTags \
370 LEFT JOIN archive ON archiveTags.record=archive.id \

Callers 2

LoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected