stores
    Preparing search index...

    Class S3Datastore

    A datastore backed by AWS S3

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    createIfMissing: boolean
    path?: string

    Methods

    • Recursively fetches all keys from s3

      Parameters

      • params: { Prefix?: string; StartAfter?: string }
      • Optionaloptions: AbortOptions

      Returns AsyncIterable<Key>

    • This will return an object with which you can chain multiple operations together, with them only being executed on calling commit.

      Returns Batch

      const b = store.batch()

      for (let i = 0; i < 100; i++) {
      b.put(new Key(`hello${i}`), new TextEncoder('utf8').encode(`hello world ${i}`))
      }

      await b.commit()
      console.log('put 100 values')