{"repo":"theorib/op-sqlite-turso-expo-react-native","free":true,"listed":false,"github":"https://github.com/theorib/op-sqlite-turso-expo-react-native","clone":"git clone https://github.com/theorib/op-sqlite-turso-expo-react-native.git","description":"This project is a test ground for connecting a Turso database to an Expo/React Native project using op-sqlite with libsql, leveraging Turso's embedded replicas.","language":"TypeScript","stars":25,"topics":["expo","libsql","op-sqlite","react","react-native","turso","typescript","sqlite"],"license":null,"category":"mobile-apps","readme_excerpt":"Testing op-sqlite with Turso on an Expo/React Native project Table of Contents 1. Description 2. Supported Platforms 3. Prerequisites 4. Steps to make this project work - Clone, download or fork the project - Install dependencies - Create a new turso database and populate it - Create a project build and run it - Start the project 5. Troubleshooting 6. Extra info Description This projects is a test ground for connecting a Turso database to an Expo/React Native project using op-sqlite (set up to use libsql as the database source) leveraging Turso's embedded replicas. Turso's embedded replicas allow database reads and/or writes to always happen from a local SQLite database first, providing very fast reads and/or writes which are then synced to a remote database. The project is currently set up to leverage Turso's main features of interest such as: - Embedded replicas - Offline writes with sync - Local database encryption at rest - Periodic sync - Read your writes Project Structure The main src/app/index.tsx file allows for displaying, adding, deleting and refreshing a list of items from the database. New items are automatically generated for demonstration purposes. The src/db folder is where most of the op-sqlite code is located. - The src/db/index.ts creates and exports the database client as well as a sync function. - The src/db/schema.ts file currenly mainly contains TypeScript types - The src/db/queries.ts file contains query functions to retrieve data from the database - Th","default_branch":null,"files":null,"tree":[],"storefront":"/r/theorib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/theorib/op-sqlite-turso-expo-react-native/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}