GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sqlitecloud/sqlitecloud-js: Javascript drivers for SQLiteCloud

BranchesTags
Open more actions menu

Latest commit

 

History

514 Commits
514 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
examples
examples
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
jest.config.js
jest.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

@sqlitecloud/drivers

npm package Test Downloads Issues codecov

Install

Web / Node.js / Next.js

npm install @sqlitecloud/drivers

No additional dependencies required - the package works out of the box.

React Native / Expo

When using this package in React Native or Expo projects, you must install the required peer dependencies. These dependencies are optional and not installed automatically to avoid polluting web and Node.js projects with unnecessary packages.

npm install @sqlitecloud/drivers react-native-tcp-socket react-native-quick-base64 @craftzdog/react-native-buffer react-native-url-polyfill

If you forget to install these dependencies, the package will throw clear error messages indicating which dependency is missing and how to install it.

React Native run iOS

cd ios && pod install && cd .. && npm run ios

React Native run Android (without ./ in Windows)

cd android && ./gradlew clean build && cd .. && npm run android

Expo run iOS

npx expo prebuild && npx expo run:ios

Expo run Android

npx expo prebuild && npx expo run:android

Usage

import { Database } from '@sqlitecloud/drivers'

let database = new Database('sqlitecloud://user:[email protected]:8860/chinook.sqlite')
// or use sqlitecloud://xxx.sqlite.cloud:8860?apikey=xxxxxxx

let name = 'Breaking The Rules'

let results = await database.sql('SELECT * FROM tracks WHERE name = ?', name)
// => returns [{ AlbumId: 1, Name: 'Breaking The Rules', Composer: 'Angus Young... }]

Use Database.sql to execute prepared statements or plain SQL queries asynchronously. This method returns an array of rows for SELECT queries and supports the standard syntax for UPDATE, INSERT, and DELETE.

We aim for full compatibility with the established sqlite3 API, with the primary distinction being that our driver connects to SQLiteCloud databases. This allows you to migrate your SQLite to the cloud while continuing to use your existing codebase.

The package is developed entirely in TypeScript and is fully compatible with JavaScript. It doesn't require any native libraries. This makes it a straightforward and effective tool for managing cloud-based databases in a familiar SQLite environment.

Examples

Check out all the supported platforms with related examples here!

More

How do I deploy SQLite in the cloud?
https://sqlitecloud.io

How do I connect SQLite cloud with Javascript?
https://sqlitecloud.github.io/sqlitecloud-js/

How can I contribute or suggest features?
https://github.com/sqlitecloud/sqlitecloud-js/issues

About

Javascript drivers for SQLiteCloud

sqlitecloud.github.io/sqlitecloud-js/

Topics

sqlitesqlite-ormsqlite3sqlitecloud

Resources

Readme
MIT license
Activity
Custom properties

Stars

31 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.