High Performance
Built for ScyllaDB's high-performance architecture with optimized queries and connection pooling.
For ScyllaDB and SQL databases with Laravel-inspired syntax
// Define a model
interface UserAttributes {
id: string;
name: string;
email: string;
created_at?: Date;
// Relationship attributes
posts?: Post[]
}
class User extends Model<UserAttributes> {
protected static table = 'users';
protected static fillable = ['name', 'email'];
// Define relationships
postsRelation(): HasMany<User, Post> {
return this.hasMany(Post, 'user_id', 'id');
}
}
// Use the model
const user = await User.create({
name: 'John Doe',
email: 'john@example.com'
});
const posts = await user.postsRelation().where('published', true).get();
ScyllinX combines the best of both worlds: the familiar, elegant syntax of Laravel's Eloquent ORM with the power and performance of ScyllaDB. Whether you're building high-scale applications or need the flexibility of both SQL and NoSQL databases, ScyllinX provides the tools you need.
npm install scyllinx