Skip to content

AmraksTech/refine-xata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xata Data Provider for Refine

This custom data provider enables seamless integration of Xata's database services with the Refine framework.

(IN PROGRESS ...)

Prerequisites

Before using this data provider, ensure you have:

  • An account with Xata
  • A configured Xata project with a database
  • The Xata SDK installed in your project

Installation

Make sure you have @refinedev/core and @xata.io/client installed in your project. If not, you can install them using npm:

npm install @refinedev/core @xata.io/client

Setup

Import and initialize the Xata client, then pass it to the data provider:

import { getXataClient } from './xata'; // Adjust the path as necessary
import { dataProvider as createDataProvider } from './path/to/dataProvider'; // Adjust the path as necessary

const xataClient = getXataClient();
const dataProvider = createDataProvider(xataClient);

Releases

No releases published

Packages

No packages published