npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cacheodbc

v0.0.3

Published

Cache ODBC - javascript library for ODBC access to Intersystems Cache

Downloads

6

Readme

Cache ODBC - javascript access to Intersystems Cache Database

Build Status Gitter

Description

This library aims to provide a simple access to ODBC data sources for node.js.

The library is primarily targeted at https://www.intersystems.com/products/cache/#what-sets-it-apart, but may be suitable for other databases as well.

Library heavily relies on https://github.com/nanodbc/nanodbc - a proven wrapper for ODBC API.

Current status

The library has alpha quality. Integration tests are written for Cache database samples.

Usage

See test specs for a usage example for a raw connector interface. See https://github.com/theconst/odm-sample for an example web application. You may also find a comprehensive instruction for different OS configuration.

Prerequisites

  1. Git 2.x.x
  2. MSVC Build tools (Windows), GCC 6.x.x + Make (UNIX)
  3. Cmake >= 3.2
  4. nodejs (tested versions are 8.x.x and 10.x.x)
  5. UnixODBC (on Linux)
  6. Configured ODBC datasource for the database. You may find configuration samples in config directory.

Build steps

General build steps:

  1. git clone https://github.com/theconst/aodbc
  2. npm install

If the above steps do not work (or custom build options are required):

  1. git clone https://github.com/theconst/aodbc
  2. npm install
  3. npm install -g cmake-js
  4. cmake-js rebuild -a <target arch> -G <generator to use>

After installing and building the module, you can use it as a submodule.

Docker

To launch the application in Docker container, follow the following steps:

  1. Change settings for your ODBC host in odbc.ini
  2. docker build -t cacheodbc:latest .
    • For Linux run the following command docker run -t --network host cacheodbc:latest &
    • For Windows, follow the instructions on https://stackoverflow.com/questions/40746453/how-to-connect-to-docker-host-from-container-on-windows-10-docker-for-windows or if you happen to launch your database in docker, connect the two via bridge network.
  3. docker exec -it <docker_image_id> /bin/bash
  4. npm t will run the test for the library

Releasing

  • To trigger a release, commit to a branch with release-* tag.
  • Artifacts will be available in the corresponding git releases section

Packaging

  1. Download artifacts from release.
  2. Add them to build directory.
  3. Add new artifacts (if any to package.json)
  4. run npm publish

TODO List

  • [x] Add support for setting fetch size
  • [ ] Add tracing. You can enable tracing on ODBC labels
  • [x] Generalize delegation code
  • [ ] Increase C++ test coverage
  • [ ] Rewrite tests to be database-agnostic
  • [x] Automate build for linux
  • [x] Add support for prepared statements
    • [x] Add support for dates in prepared statements
  • [x] Add support for transactions
  • [x] Add support for binary type
  • [x] Add support for Windows
  • [x] Add support for Unicode
  • [ ] Rename library to cache-odbc
  • [ ] Migrate to bintray to reduce binary package size