cassandraorm-js
Version:
The most advanced ORM for Apache Cassandra and ScyllaDB with native TypeScript support, AI/ML integration, and enterprise-grade features
85 lines (64 loc) β’ 2.05 kB
Markdown
# CassandraORM JS Documentation
A modern and optimized ORM for Apache Cassandra and ScyllaDB with native TypeScript support, ES6+ features and advanced capabilities.
## π Features
- **TypeScript First** - Native support with complete types
- **ES6+ Modules** - Modern import/export syntax
- **Async/Await** - Promise-based API throughout
- **Performance** - Optimized for high performance
- **Developer Experience** - Enhanced DX with full IntelliSense
## π¦ Installation
```bash
npm install cassandraorm-js
```
## β‘ Quick Start
```typescript
import { CassandraORM } from 'cassandraorm-js';
const orm = new CassandraORM({
contactPoints: ['127.0.0.1'],
localDataCenter: 'datacenter1',
keyspace: 'myapp'
});
// Define model
const User = orm.model('User', {
id: 'uuid',
name: 'text',
email: 'text',
createdAt: 'timestamp'
}, {
key: ['id'],
indexes: ['email']
});
// Use the model
const user = await User.create({
id: orm.uuid(),
name: 'John Doe',
email: 'john@email.com',
createdAt: new Date()
});
```
## π Documentation Structure
- [Installation Guide](installation.md) - How to install and configure
- [Migration Guide](migration.md) - Migrate from Express-Cassandra
- [API Reference](api-reference.md) - Complete API documentation
- [Examples](examples.md) - Practical examples
## Features
β
Support for Cassandra 4.x, 3.x and ScyllaDB 5.x
β
Complete CRUD operations
β
Data type validation
β
Support for collections and advanced types
β
Materialized views and indexes
β
Complex queries with pagination
β
User-defined types/functions/aggregates
β
Atomic batch operations
β
Save/update/delete hooks
β
Full Promise support
β
Automatic migrations (experimental)
β
Data import/export (experimental)
## π Languages
- [English](README.md) (current)
- [PortuguΓͺs](README.pt.md)
## Support
- [GitHub Issues](https://github.com/wemerson-silva-kz/cassandraorm-js/issues)
- [NPM Package](https://www.npmjs.com/package/cassandraorm-js)
## License
MIT License