Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds cloud manager api #11

Merged
merged 7 commits into from
Jun 30, 2024
Merged

Adds cloud manager api #11

merged 7 commits into from
Jun 30, 2024

Conversation

micheleriva
Copy link
Member

@micheleriva micheleriva commented Mar 26, 2024

Example API:

import { CloudManager } from '@oramacloud/client'

const manager = new CloudManager({ api_key: 'HDks8Hkao82-ha9daj' }) // <--- Private API key
const indexManager = manager.index('h7asdjk9d12kdlofabsha123') // <--- index ID

await indexManager.empty()
await indexManager.insert([{ id: "1", name: "John Doe" }, { id: "2", name: "Jane Doe" }])
await indexManager.update({ id: "2", name: "Jane Don" })
await indexManager.delete({ id: "1" })
await indexManager.deploy()

src/manager/index.ts Outdated Show resolved Hide resolved
@micheleriva micheleriva merged commit 24af676 into main Jun 30, 2024
1 check passed
@micheleriva micheleriva deleted the feat/adds-cloud-manager branch June 30, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants