Skip to content

Instantly share code, notes, and snippets.

View jtgoldstone's full-sized avatar

jtgoldstone

  • Google, Inc
  • Mountain View, CA
View GitHub Profile
@jtgoldstone
jtgoldstone / csv2sql.py
Created January 4, 2026 23:09
Python code to make SQLite to import CSV data
import csv
import subprocess
import shutil
import os
import argparse
import sys
from pathlib import Path
def get_best_type(current_type, value):
"""Determines the most restrictive SQLite type (INTEGER -> REAL -> TEXT)."""