web3.db-fileconnector
Version:
GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be
28 lines (16 loc) • 1.24 kB
Markdown
The CSV Uploader plugin allows users to easily import large amounts of data into OrbisDB using a CSV file. This plugin exposes an upload route that users can use to push the CSV they want to import.
## Features
- **Easy Data Import**: Simplify the process of importing large datasets into OrbisDB.
- **Upload Route**: Provides a straightforward upload route for users to submit their CSV files.
- **Data Validation**: Ensures that CSV columns are structured to match the fields of the model being used.
## Installation
To install the CSV Uploader plugin, follow these steps:
1. Add the plugin to your OrbisDB instance.
2. Configure the plugin according to your requirements using either an existing context or by creating a new one.
## Usage
### Upload Route
The plugin exposes an `upload` route which users can use to push the CSV file they want to import.
### CSV Structure
Ensure that your CSV file's columns match the fields of the model you are using in OrbisDB.
- **Field Matching**: The column names in the CSV must precisely match the field names of your model.
- **Array and Object Fields**: For columns of type array or object, use default values like `[]` or `{}` to respect the format.