Skip to content

Conversation

@DallasHoff
Copy link
Owner

Implement useReactiveQuery hooks for React, Vue, and Angular.

import { SQLocal } from 'sqlocal';
import { useReactiveQuery } from 'sqlocal/react';

const db = new SQLocal({
	databasePath: 'database.sqlite3',
	reactive: true,
});

export function MyComponent() {
	const groceries = useReactiveQuery(db, (sql) => sql`SELECT * FROM groceries`);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants