Function: connectionRuns()
connectionRuns(
db,runs,prefix,ownerRef,provider,generation):Promise<MeetingRunRecord[]>
Defined in: packages/agentos/src/io/channels/meetings/stores/provenance.ts:33
Every run an owner sent through one provider connection, whatever its state and however long ago, read through the run store, ordered by run id. The connection reference outlives a run's content, so a host purging what a connection gathered (its credentials revoked, say) finds the terminal runs as well as the active ones.
Parameters
db
Reads the runs table the run store writes.
all
runs
The run store the rows are read back through.
prefix
string
The prefix the stores' tables were made under.
ownerRef
string
The owner whose runs are wanted.
provider
string
The provider the runs were sent through.
generation
string
The provider's connection reference (MeetingRunRecord.providerConnectionRef).
Returns
Promise<MeetingRunRecord[]>
Throws
Error, the one meetingStoreTables throws, when the prefix is not a lower-case letter followed by at most 37 lower-case letters, digits or underscores; nothing is read.