P_astro_project.create_database

This script will import the .csv of the samples and turn in into an sqlite3 database. This is mainly for exploring SQL databases, it is not expected to hold any advantage over working with the .csv file.

Module Contents

Functions

do_directory(dirname, db)

Perform the conversion of the .csv file into an SQLite3 database.

convert_file(filename, db)

Perform the conversion of the .csv file into an SQLite3 database.

P_astro_project.create_database.do_directory(dirname, db)[source]

Perform the conversion of the .csv file into an SQLite3 database.

Parameters
dirname: string

File path to the directory of the .csv file.

db: string

Location and name of the database to be created.

P_astro_project.create_database.convert_file(filename, db)[source]

Perform the conversion of the .csv file into an SQLite3 database.

Parameters
dirname: string

File path to the directory of the .csv file.

db: string

Location and name of the database to be created.