Skip to content

Capacitor SolidJS Vite application demonstrating the use of the @capacitor-community/sqlite

License

Notifications You must be signed in to change notification settings

jepiqueau/capacitor-solid-sqlite

Repository files navigation


SolidJS Vite SQLite App

capacitor-solid-sqlite

SolidJS application demonstrating the use of the

@capacitor-community/sqlite


this app uses Capacitor 4


Maintainers

Maintainer GitHub Social
Quéau Jean Pierre jepiqueau

Installation

git clone https://github.com/jepiqueau/capacitor-solid-sqlite.git 
cd capacitor-solid-sqlite
git remote rm origin
  • then install it
npm install
  • then go to the building process
npm run build
npx cap sync
npx cap sync @capacitor-community/electron
npm run build
npx cap copy
npx cap copy @capacitor-community/electron

the capacitor config parameters are:

  "appId": "com.jeep.app.solidjs",
  "appName": "capacitor-solid-sqlite",

Building Web Code

The @capacitor-community/sqlite is now implementing sqlite for Web Browsers using a companion Stencil component jeep-sqlite which itself is based on sql.js for in-memory and localforage for storing the database in an IndexedDB storage. if you run

npm run serve

Building Native Project

Android

npx cap open android

Once Android Studio launches, you can build your app through the standard Android Studio workflow.

iOS

npx cap open ios

electron

npx cap open @capacitor-community/electron

Test SQLite access

The @capacitor-community/sqlite tests are accessible through the home page menu.

  • Sqlite

and the press on:

  • No Encryption

  • Import/Export JSON

Documentation

To use the @capacitor-community/sqlite, have a look to the documentation folder documentation sqlite

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jean Pierre Quéau

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Capacitor SolidJS Vite application demonstrating the use of the @capacitor-community/sqlite

Resources

License

Stars

Watchers

Forks

Packages