Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ottoman
Advanced tools
Readme
Ottoman is an ODM built for Couchbase and Node.js.
Ottoman's goal is to provide a better development experience while using Couchbase, bringing to developers a reliable tool to build systems that are easy to design, maintain, and scale.
npm install ottoman
That's it, you are ready to use Ottoman.
Supported version are:
Ottoman | Nodejs | Couchbase SDK | Couchbase Server |
---|---|---|---|
^2.0.0 | ^8.0.0 | ^4.2.0 | ^6.5.0 |
Notice: make sure you are using supported versions
const { connect, model, start, close } = require('ottoman');
const main = async () => {
await connect("couchbase://localhost/travel-sample@admin:password");
const User = model('User', { name: String });
const user = new User({ name: 'Jane Doe' });
await start();
await user.save();
console.log('Nice Job!');
await close();
}
main();
You should see results similar to the following:
Nice Job!
::: tip Note If you are using the legacy version of Ottoman, check out the V1 docs. :::
Checkout our examples and docs for typescript and javascript implementation.
For questions and support please use the official forum or contact community. Please make sure to read the Issue Reporting Checklist before opening an issue.
Detailed changes for each release are documented in the release notes.
Thank you to all the people who already contributed to Couchbase Ottoman!
::: tip Note Check results on http://localhost:8091/ couchbase web client. :::
$ git clone https://github.com/couchbaselabs/node-ottoman.git
$ cd node-ottoman
$ yarn install
$ yarn dev
$ yarn build
$ yarn lint
$ yarn test
$ yarn test --coverage
$ yarn docs
$ yarn docs:dev
When publishing a new package to NPM, please follow the following steps:
package.json
file w/ new versiontest:legacy
Until CB 7 Release)package.json
file w/ new versionOnce package is published, *update the docs:
docs/.vuepress/dist
to ottomanjs-site© Copyright 2021 Couchbase Inc.
Licensed under the Apache License, Version 2.0. See the Apache 2.0 license.
FAQs
Ottoman Couchbase ODM
The npm package ottoman receives a total of 466 weekly downloads. As such, ottoman popularity was classified as not popular.
We found that ottoman demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.