Skip to content

This repo contains my first attempts with C. The idea was to build a database from a CSV file with (mainly) text data to practice its processing and creating simple SQLite queries.

Notifications You must be signed in to change notification settings

3lle4/CSV2SQLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV2SQLite: Building a database with SQLite using the UNESCO Intangible Cultural Heritage (ICH) dataset as an example.

Table of Contents

Project Overview

The UNESCO Intangible Cultural Heritage (ICH) dataset is a collection of valuable cultural heritage information in mostly text form. This project showcases how to create an SQLite database from CSV files, import data into the database, and perform basic SQL operations.

Key features of the project:

  • Safe CSV data to a C struct
  • Import the struct into SQLite
  • Search and query the database

The dataset can be found on kaggle.com.

Installation

  1. Clone the repository
  git clone https://github.com/3lle4/CSV2SQLite
  1. Navigate to the folder
    cd src
  1. Compile the code
    ./compile main.c

Usage

Use the given code to create a database from a CSV file and explore it with the given functions. Currently the following features are implemented:

  • Creating a database
  • Creating a table (from CSV file)
  • Formatting the data types of columns
  • Browsing and output of values

Acknowledgements

About

This repo contains my first attempts with C. The idea was to build a database from a CSV file with (mainly) text data to practice its processing and creating simple SQLite queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages