Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for advanced decoding CQL BigInt #137

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

Draft
wants to merge 52 commits into
base: second-iteration
Choose a base branch
Loading
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e6b2137
Move CharCounter from LocalTime to Utils
Stapox35 Feb 24, 2025
5235b32
Convert Row to class
adespawn Feb 25, 2025
858c190
Crete result as a Row
adespawn Feb 25, 2025
de3d71c
Enable 24 integration tests
adespawn Feb 25, 2025
aa3de6b
Utils refactor
adespawn Dec 9, 2024
dcdeff1
Convert integer to class syntax
adespawn Dec 9, 2024
7957477
Mark integer as deprecated
adespawn Dec 9, 2024
1a08fbc
Refactor LocalDate to class in JS
Stapox35 Nov 24, 2024
69d39ff
Add tests for LocalDate
Stapox35 Nov 24, 2024
37c4ee8
Add implementation of LocalDate in Rust
Stapox35 Nov 27, 2024
eb47053
Add support for rust objects in JS files
Stapox35 Nov 27, 2024
19b8137
Implement LocalDate.toString() function in Rust
Stapox35 Nov 28, 2024
ee16725
Implement LocalDate.fromString() function in Rust
Stapox35 Dec 3, 2024
07185f4
Add tests for LocalDate conversion
Stapox35 Dec 3, 2024
2b3bd6b
Enable Integration test
Stapox35 Mar 3, 2025
bfdb383
Reorganize rust request structure
adespawn Nov 16, 2024
8e9169b
Add simple QueryOptionsWrapper
adespawn Nov 16, 2024
27d0204
Make use of some query options fields
adespawn Nov 16, 2024
4d76531
Add query options parsing in js
adespawn Nov 16, 2024
85aa2e0
Update and enable some integration tests
adespawn Nov 16, 2024
f637bd2
Fix tests
adespawn Jan 16, 2025
dcfa4f8
Move UUID regex
adespawn Feb 20, 2025
10e399d
Adapt existing type guessing
adespawn Feb 20, 2025
d679a79
Organize tests for type guessing
adespawn Feb 20, 2025
1a2ab6e
Reorganize imports
adespawn Mar 2, 2025
731f7a9
Type guessing
adespawn Feb 20, 2025
ded14ba
Converting js object hints into Complex Type
adespawn Feb 21, 2025
c97d806
Disable broken test
adespawn Feb 23, 2025
4916e6c
Unprepared batch queries
adespawn Feb 23, 2025
7e08caa
Enable tests for type guessing
adespawn Feb 25, 2025
de8deb9
Add support for partial hints.
adespawn Feb 25, 2025
499d334
Rename struct fields
adespawn Mar 2, 2025
8823790
Disable incorrectly enabled test
adespawn Mar 7, 2025
5878d37
Fix casting values to CqlDate
Stapox35 Mar 11, 2025
a8eb336
Update NAPI-RS to new minor release
adespawn Mar 10, 2025
665c8d9
Update scylla rust driver to 1.0.0
adespawn Mar 10, 2025
5e28d53
Move TS tests out of not-supported directory
ZuzaOsa Mar 10, 2025
71150a5
Add typescript workflow
ZuzaOsa Mar 11, 2025
fa5576c
Remove deprecated modules from Typescript tests
ZuzaOsa Mar 11, 2025
abc5dba
Change variable name from case to case_id
ZuzaOsa Mar 11, 2025
d0c890b
Fix circular dependency warning
adespawn Mar 14, 2025
7a1a8c8
Add pedantic mode
adespawn Mar 14, 2025
35c0bfe
Change names of Github Actions from sentences equivalent to sentences
PiotrJunior Mar 18, 2025
76bb98d
Fix integration tests problems
adespawn Mar 8, 2025
339d96c
Block concurrency on github CI integration tests
adespawn Mar 20, 2025
9d84fce
Check values of the map
adespawn Mar 11, 2025
4cb224c
Convert selected types from string
adespawn Mar 4, 2025
970392c
Number validation
adespawn Mar 4, 2025
f6c2809
BigInt type extension
adespawn Mar 4, 2025
aa0d16c
Remove no longer supported encodings from tests
adespawn Mar 10, 2025
9715c77
Add support for advanced decoding CQL BigInt
adespawn Feb 20, 2025
de3fb55
Add encoding options to session options
adespawn Mar 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code quality
name: Check code quality
env:
DEBUG: napi:*
APP_NAME: scylladb-javascript-driver
Expand Down
1 change: 1 addition & 0 deletions 1 .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Run examples
env:
DEBUG: napi:*
APP_NAME: scylladb-javascript-driver
PEDANTIC: true
"on":
push:
branches:
Expand Down
2 changes: 2 additions & 0 deletions 2 .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ env:
DEBUG: napi:*
APP_NAME: scylladb-javascript-driver
RUST_BACKTRACE: full
PEDANTIC: true
NO_CONCURRENCY: true
"on":
push:
branches:
Expand Down
49 changes: 49 additions & 0 deletions 49 .github/workflows/typescript-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Run Typescript tests
env:
DEBUG: napi:*
"on":
push:
branches:
- "**"
jobs:
build-and-run-tests:
strategy:
fail-fast: false
name: Build and run typescript tests - node@20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.napi-rs
.cargo-cache
target/
key: x86_64-unknown-linux-gnu-cargo-ubuntu-latest
- name: Install dependencies
run: npm i
- name: Run build
run: npm run build
- name: Install TypeScript 4.9
run: npm install -g typescript@4.9
- name: Compile TypeScript
run: |
pushd test/typescript/
tsc -p .
node -e "require('./api-generation-test').generate()" > generated.ts
tsc generated.ts
shell: bash
3 changes: 2 additions & 1 deletion 3 .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# The goal of this workflow is to check if unit test run correctly
# This includes both datastax unit tests and tests specific for this driver
name: Unit tests
name: Run unit tests
env:
DEBUG: napi:*
PEDANTIC: true
"on":
push:
branches:
Expand Down
12 changes: 6 additions & 6 deletions 12 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ crate-type = ["cdylib"]

[dependencies]

napi = { version = "2.12.2", default-features = false, features = ["napi4", "napi6", "async"] }
napi-derive = "2.12.2"
scylla = { git = "https://github.com/scylladb/scylla-rust-driver.git", rev = "v0.15.0", features = [
"ssl",
] }
napi = { version = "2.16.16", default-features = false, features = ["napi4", "napi6", "async"] }
napi-derive = "2.16.6"
scylla = { git = "https://github.com/scylladb/scylla-rust-driver.git", rev = "v1.0.0" }
tokio = { version = "1.34", features = ["full"] }
futures = "0.3"
uuid = "1"
regex = "1.11.1"
thiserror = "2.0.12"


[build-dependencies]
napi-build = "2.0.1"
napi-build = "2.1.5"

[profile.release]
lto = true
Expand Down
6 changes: 4 additions & 2 deletions 6 lib/client-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ const { throwNotSupported } = require("./new-utils");
* @property {Boolean} [encoding.useBigIntAsLong] Use [BigInt ECMAScript type](https://tc39.github.io/proposal-bigint/)
* to represent CQL bigint and counter data types.
* [TODO: Add support for this field]
* @property {Boolean} [encoding.useBigIntAsVarint] Use [BigInt ECMAScript
* type](https://tc39.github.io/proposal-bigint/) to represent CQL varint data type.
* @property {Boolean} [encoding.useBigIntAsVarint] Use [BigInt ECMAScript type](https://tc39.github.io/proposal-bigint/)
* to represent CQL varint data type.
*
* Note, that using Integer as Varint (``useBigIntAsVarint == false``) is deprecated.
* [TODO: Add support for this field]
* @property {Array.<ExecutionProfile>} [profiles] The array of [execution profiles]{@link ExecutionProfile}.
* [TODO: Add support for this field]
Expand Down
Loading
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.