| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Connector for backends created with SQLite.
With refine-sqlite you can quickly start creating your app as fast as possible by leveraging the easy-to-use methods powered by refine to interact with your SQLite database.
npm install refine-sqliteNote resource is the name of the table in the database.
import { dataProvider } from "refine-sqlite";
const response = dataProvider("database.db")
.getList({
resource: "posts",
filters: [
{
field: "category_id",
operator: "eq",
value: ["2"],
},
],
sorters: [
{
field: "title",
order: "asc",
},
],
});
console.log(response)
// {
// data: [
// { id: 6, title: 'Dolorem unde et officiis.', category_id: 2 },
// { id: 1, title: 'Soluta et est est.', category_id: 2 }
// ],
// total: 2
// }Clone the repository
git clone https://github.com/mateusabelli/refine-sqlite.gitInstall the dependencies
cd refine-sqlite
pnpm installBuild and test
pnpm run build
pnpm run testImportant Before the tests run, the database file test.db is deleted and recreated.
All contributions are welcome and appreciated! Please create an Issue or Pull Request if you encounter any problems or have suggestions for improvements.
If you want to say thank you or/and support active development of refine-sqlite
refine |
I'd like to thank refine, my first GitHub sponsor ❤️
For believing and supporting my projects!
refine-sqlite is free and open-source software licensed under the MIT License.
The feather icon is from Phosphor Icons licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |