expressots / scylladb-driver-old Goto Github PK
View Code? Open in Web Editor NEWThe ScyllaDB driver for Node.js written in C++ ๐
Home Page: https://www.scylladb.com/
License: MIT License
The ScyllaDB driver for Node.js written in C++ ๐
Home Page: https://www.scylladb.com/
License: MIT License
The current code structure in the src directory is organized under a single file lib.rs. While this approach might have been suitable for smaller projects, as our codebase grows, it becomes increasingly important to adopt a more modular and maintainable structure.
src
โโโ lib.rs
To address this, we should reorganize the codebase by introducing a modular approach. This would involve dividing the code into smaller, focused modules, each responsible for a specific functionality or feature. This will enhance code readability, improve collaboration among developers, and make it easier to manage and maintain the codebase in the long run.
src
โโโ lib.rs
โโโ cluster
โ โโโ mod.rs
โ โโโ cluster.rs
โ โโโ cluster_config.rs
โโโ session
โโโ mod.rs
โโโ scylla_session.rs
In this updated structure, we have two main modules: cluster
and session
. Here's a breakdown of each module:
cluster
Module:mod.rs
: This file acts as the module's entry point and defines the module's public interface.cluster.rs
: This file contains the implementation of the Cluster
struct and its associated methods.cluster_config.rs
: This file defines the ### ClusterConfig
struct and its associated functions.session
Module:mod.rs
: This file acts as the module's entry point and defines the module's public interface.scylla_session.rs
: This file contains the implementation of the ScyllaSession
struct and its associated methods.The lib.rs
file serves as the entry point for the application and can import and use the modules defined in the src
directory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.