The Cassandra/Scylla library you didn't want but got anyways.

Overview

./scyllo.png

Installation

Using npm:

npm install scyllo

or if you prefer to use the yarn package manager:

yarn add scyllo

Usage

import { ScylloClient } from 'scyllo';

type User = {
    user_id: string;
    username: string;
};

type Order = {
    order_id: string;
};

const DB = new ScylloClient<{ users: User, orders: Order }>({
    client: {
        contactPoints: [
            'localhost:9042'
        ],
        keyspace: 'mykeyspace',
        localDataCenter: 'datacenter1'
    }
});

(async () => {

    const user = await DB.selectFrom('users', ['user_id', 'username'], {user_id: 'A4J2I4XZ'});

})();

Known Restrictions

Limited multi-keyspace support.

Comments
  • Remove unsupported queries from BatchBuilder

    Remove unsupported queries from BatchBuilder

    The batch query in usage only actually supports UPDATE, INSERT and DELETE queries. This was an oversight done while building the batch builder.

    Source: https://docs.datastax.com/en/dse/6.0/cql/cql/cql_reference/cql_commands/cqlBatch.html

    bug 
    opened by svemat01 0
  • Bump minimist from 1.2.5 to 1.2.6

    Bump minimist from 1.2.5 to 1.2.6

    Bumps minimist from 1.2.5 to 1.2.6.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • [Bug] `LogMethod` requires a `TypeArgument` in `@lvksh/logger@>=1.6.0`

    [Bug] `LogMethod` requires a `TypeArgument` in `@lvksh/logger@>=1.6.0`

    Problem

    New versions of @lvksh/logger (≥1.6.0) require LogMethods to have a TypeArgument.

    Where

    src/ScylloClient.ts:58:11 and src/ScylloClient.ts:78:10

    Proposed solution

    • Updating @lvksh/logger
    • Using a type like (...input: LogMethodInput[]) => any
    opened by prokopschield 0
  • Fix deleteFrom

    Fix deleteFrom

    deleteFrom currently has a broken syntax.

    Currently gives DELETE authServer.tokenAuths WHERE token_id=? where it should actually be DELETE FROM authServer.tokenAuths WHERE token_id=? https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/cqlDelete.html

    Update tests for deleteFromRaw to actually call the correct function and expect the correct output.

    enhancement 
    opened by svemat01 0
  • Add 'extra' argument to insertInto and update

    Add 'extra' argument to insertInto and update

    ScylloClient#insertInto and ScylloClient#update are missing the optional argument extra that ScylloClient#selectFrom and ScylloClient#deleteFrom has.

    The extra argument is used to pass in extra options that should be passed along with the normal query to the database.

    enhancement good first issue 
    opened by svemat01 0
  • Bump minimatch from 3.0.4 to 3.1.2

    Bump minimatch from 3.0.4 to 3.1.2

    Bumps minimatch from 3.0.4 to 3.1.2.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Releases(v1.6.1)
  • v1.6.1(Dec 21, 2022)

    What's Changed

    • Export Migration Types by @lucemans in https://github.com/v3xlabs/scyllo/pull/44

    Full Changelog: https://github.com/v3xlabs/scyllo/compare/v1.6.0...v1.6.1

    Source code(tar.gz)
    Source code(zip)
  • v1.6.0(Dec 20, 2022)

    What's Changed

    • Bump minimist from 1.2.5 to 1.2.6 by @dependabot in https://github.com/v3xlabs/scyllo/pull/35
    • Add migration support by @Antony1060 in https://github.com/v3xlabs/scyllo/pull/43

    New Contributors

    • @dependabot made their first contribution in https://github.com/v3xlabs/scyllo/pull/35

    Full Changelog: https://github.com/v3xlabs/scyllo/compare/v1.5.0...v1.6.0

    Source code(tar.gz)
    Source code(zip)
  • v1.5.0(Aug 21, 2022)

    What's Changed

    • Update lvksh/logger and update LogMethod Type by @svemat01 in https://github.com/v3xlabs/scyllo/pull/38
    • Fix type by @Antony1060 in https://github.com/v3xlabs/scyllo/pull/39

    Full Changelog: https://github.com/v3xlabs/scyllo/compare/v1.4.0...v1.5.0

    Source code(tar.gz)
    Source code(zip)
  • v1.4.0(Jul 12, 2022)

    What's Changed

    • Remove unsupported queries from BatchBuilder by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/36
    • Support BigInt primitive by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/37

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v1.3.0...v1.4.0

    Source code(tar.gz)
    Source code(zip)
  • v1.3.0(Jan 25, 2022)

    What's Changed

    • Fix deleteFrom syntax and testing by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/31
    • Migrate eslint-plugin-lvksh by @lucemans in https://github.com/lvkdotsh/scyllo/pull/33

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v1.2.0...v1.3.0

    Source code(tar.gz)
    Source code(zip)
  • v1.2.0(Jan 2, 2022)

    What's Changed

    • Batch statements by @Antony1060 in https://github.com/lvkdotsh/scyllo/pull/29

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v1.1.0...v1.2.0

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Jan 2, 2022)

    What's Changed

    • Migrate to LGPL by @lucemans in https://github.com/lvkdotsh/scyllo/pull/25
    • Add dropKeyspace method and doc by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/26
    • Feat: Add 'extra' argument to insertInto and update by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/27

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v1.0.0...v1.1.0

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Jan 2, 2022)

    What's Changed

    • Add documentation for all functions by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/21
    • Make jest config into typescript by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/23

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.10.0...v1.0.0

    Source code(tar.gz)
    Source code(zip)
  • v0.10.0(Jan 1, 2022)

    What's Changed

    • Add support for CollectionTypes by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/17

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.9...v0.10.0

    Source code(tar.gz)
    Source code(zip)
  • v0.9.9(Jan 1, 2022)

    What's Changed

    • Improve tests format and add prepare option by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/16

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.8...v0.9.9

    Source code(tar.gz)
    Source code(zip)
  • v0.9.8(Jan 1, 2022)

    What's Changed

    • Improve generic naming by @lucemans in https://github.com/lvkdotsh/scyllo/pull/13
    • Add Global/Local Secondary Index creation support by @svemat01 in https://github.com/lvkdotsh/scyllo/pull/15

    New Contributors

    • @svemat01 made their first contribution in https://github.com/lvkdotsh/scyllo/pull/15

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.7...v0.9.8

    Source code(tar.gz)
    Source code(zip)
  • v0.9.7(Dec 17, 2021)

    What's Changed

    • added basic comments for methods by @thejoshuahendrix in https://github.com/lvkdotsh/scyllo/pull/11

    New Contributors

    • @thejoshuahendrix made their first contribution in https://github.com/lvkdotsh/scyllo/pull/11

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.6...v0.9.7

    Source code(tar.gz)
    Source code(zip)
  • v0.9.6(Dec 16, 2021)

    What's Changed

    • Introduce custom logging by @lucemans in https://github.com/lvkdotsh/scyllo/pull/8

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.5...v0.9.6

    Source code(tar.gz)
    Source code(zip)
  • v0.9.5(Dec 15, 2021)

  • v0.9.4(Dec 14, 2021)

    What's Changed

    • Introduce MIT by @lucemans in https://github.com/lvkdotsh/scyllo/pull/6

    New Contributors

    • @lucemans made their first contribution in https://github.com/lvkdotsh/scyllo/pull/5

    Full Changelog: https://github.com/lvkdotsh/scyllo/compare/v0.9.3...v0.9.4

    Source code(tar.gz)
    Source code(zip)
Owner
LVK.SH
LVK.SH
If you are a Slack browser user, this userscript will allow you to auto-redirect without Slack asking if you want to open on the desktop app.

Auto-redirect for browser Slack users If you are a Slack browser user, this userscript will allow you to auto-redirect without Slack asking if you wan

Felipe Santos (he/him) 6 Aug 23, 2022
Same as sqlite-tag but without the native sqlite3 module dependency

sqlite-tag-spawned Social Media Photo by Tomas Kirvėla on Unsplash The same sqlite-tag ease but without the native sqlite3 dependency, aiming to repla

Andrea Giammarchi 17 Nov 20, 2022
Like JSON-RPC, but supports streaming.

Earthstar Streaming RPC Similar to JSON-RPC, but also supports streaming (soon). Written to be used in Earthstar (github, docs). Table of Contents Usa

Earthstar Project 5 Feb 10, 2022
Azure Data Studio is a data management tool that enables you to work with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.

Azure Data Studio is a data management tool that enables working with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.

Microsoft 7k Dec 31, 2022
In how many ways can you print in the console 50 times?

In how many ways can you print in the console 50 times I was asked at an interview how to print in the console "Hello World" 50 times in as few lines

Bruno Noriller 3 Oct 4, 2021
Welcome to the LEGO Games Repository, where you can enjoy anytime, anywhere. This is the 2021 KNU Advanced Web Programming team project.

Welcome to LEGO git repository! Here are some useful information about LEGO service. 0. Docker image Link : https://hub.docker.com/r/leibniz21c/legoga

Heesung Yang 16 Jul 21, 2022
A Gmail Clone which built with ReactJS and Redux. You can sign in with your Google Account, compose a new e-mail and send realtime emails to the project.

Gmail Clone with ReactJS A Gmail Clone that you can sign in with your Google Account, compose a new e-mail and send realtime emails to the project. Cl

Özge Coşkun Gürsucu 49 Nov 14, 2022
ConnectNOW - Live web application that allows you to connect with people around the world!

connectNOW Live web application that allows you to connect with people around the world! You can share images, quotes, and anything on your mind! It a

Isha Chaudhry 1 Jan 3, 2022
The Wholesome App. A project that allows you to upload images directly to MongoDB Atlas into your collection, a faster cloud database.

The Wholesome App. A project that allows you to upload images directly to MongoDB Atlas into your collection, a faster cloud database. To upload your cute and wholesome images.

Gourav Singh Rawat 2 Jul 17, 2022
Tools that eat glass so you don't have to

GlassEater Tools that eat glass so you don't have to. Docs coming soon... Features generates the most precise and optimal getProgramAccounts queries p

Goo 31 Sep 27, 2022
✏️ Extended Writer supercharges Kirby's built-in Writer field with useful marks, nodes and features you wish were built-in

Extended Writer Extended Writer supercharges Kirby's built-in Writer field and block with useful marks, nodes and features you wish were built-in. Fea

coralic 21 Nov 10, 2022
A postgraphile plugin that allows you to expose only a single direction of connections exposed by foreign key constraints

A postgraphile plugin that allows you to expose only a single direction of connections exposed by foreign key constraints

Chandler Gonzales 4 Mar 13, 2022
A JSON Database that saves your Json data in a file and makes it easy for you to perform CRUD operations.

What is dbcopycat A JSON Database that saves your Json data in a file and makes it easy for you to perform CRUD operations. ⚡️ Abilities Creates the f

İsmail Can Karataş 13 Jan 8, 2023
A remote nodejs Cached sqlite Database Server, for you to have your perfect MAP Cache Saved and useable remotely.

A remote nodejs Cached sqlite Database Server, for you to have your perfect MAP Cache Saved and useable remotely. Easy Server and Client Creations, fast, stores the Cache before stopping and restores it again! it uses ENMAP

Tomato6966 6 Dec 18, 2022
Transform stream that lets you peek the first line before deciding how to parse it

streampecker Transform stream that lets you peek the first line before deciding how to parse it

Matteo Collina 12 Jul 7, 2022
A javascript library to run SQLite on the web.

SQLite compiled to JavaScript sql.js is a javascript SQL database. It allows you to create a relational database and query it entirely in the browser.

SQL.JS 11k Jan 7, 2023
Couchbase Node.js Client Library (Official)

Couchbase Node.js Client The Node.js SDK library allows you to connect to a Couchbase cluster from Node.js. It is a native Node.js module and uses the

null 460 Nov 13, 2022
Nano: The official Apache CouchDB library for Node.js

Nano Offical Apache CouchDB library for Node.js. Features: Minimalistic - There is only a minimum of abstraction between you and CouchDB. Pipes - Prox

The Apache Software Foundation 578 Dec 24, 2022