Space SDK Package

Space SDK Package

  • Users
  • Storage
  • Space Docs

@spacehq/sdk > GundbMetadataStore > createBucket

GundbMetadataStore.createBucket() method

Create a BucketSchema record with dbId belonging to the current user.

It should fail if a bucketSlug with similar dbId already exists.

Signature:

createBucket(bucketSlug: string, dbId: string, bucketKey: string): Promise<BucketMetadata>;

Parameters

ParameterTypeDescription
bucketSlugstringunqiue slug representing bucket provided by user.
dbIdstringunique id representing bucket thread provided by user storage.
bucketKeystringunique id representing bucket provided by user storage.

Returns:

Promise<BucketMetadata>

  • GundbMetadataStore.createBucket() method
  • Parameters
Space SDK Package
Docs
Getting StartedUsersStorage
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @spacestorage