prorm API Reference
    Preparing search index...

    Class MinioStore

    MinIO store, implementing the minimal NoSqlStore marker interface. Unlike the SQL dialects there is no query(sql) — MinIO's operations are object-shaped and that shape is preserved here rather than forced into a SQL string.

    Implements

    Index
    name: "minio" = 'minio'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "minio" = 'minio'

    The client library being used

    • putObject — store an object's body (and optional metadata) under bucket/key.

      Parameters

      • bucket: string
      • key: string
      • data: unknown
      • options: PutObjectOptions = {}

      Returns Promise<PutObjectResult>

    • getObject — fetch an object. Minio.Client.getObject resolves to a readable byte stream; this method collects that stream to completion into a single Buffer so callers get the whole body without wiring up stream plumbing. Optionally attaches a companion statObject result.

      Parameters

      • bucket: string
      • key: string

      Returns Promise<GetObjectResult>

    • removeObject — delete an object.

      Parameters

      • bucket: string
      • key: string

      Returns Promise<void>

    • listObjects — list objects in bucket, optionally restricted to those whose name starts with prefix. Minio.Client.listObjects returns an object stream that emits one item per object; this method collects that stream into an array of object names (item.name). Listing is recursive so nested "path"-style keys are all returned.

      Parameters

      • bucket: string
      • Optionalprefix: string

      Returns Promise<string[]>

    • statObject — fetch an object's metadata without its body.

      Parameters

      • bucket: string
      • key: string

      Returns Promise<StatObjectResult>

    • makeBucket — create a bucket, optionally in a specific region.

      Parameters

      • bucket: string
      • Optionalregion: string

      Returns Promise<void>

    • bucketExists — whether a bucket exists.

      Parameters

      • bucket: string

      Returns Promise<boolean>