Skip to content

Modular script to rename columns in SQLite3 using python. Very function friendly.

Notifications You must be signed in to change notification settings

anyfactor/Bulk-Renaming-Columns-in-SQLite3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Renaming Columns in SQLite3

Function friendly modular script to rename columns in SQLite3.

The process

  1. Extract the column names and types from the old table.
  2. Rename old table with the word 'temp' added to it.
  3. Do your modifications with the column names and return a list
  4. Create a new table with the new column names, old column types
  5. Transfer data from the old table to a new table
  6. Drop old table

Reference

About

Modular script to rename columns in SQLite3 using python. Very function friendly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages