3.1.1.1.1.2. thyrsis.database.convert_database module

Copy database.sqlite in a new database named database_saved.sqlite.

USAGE

python -m thyrsis.database.convert_database database.sqlite

copy database.sqlite in a new database named database_saved.sqlite. if database_saved.sqlite already exists, it will be replaced. Then modify database.sqlite.

thyrsis.database.convert_database.columns(cursor, table, exclude=[])

Return columns name for a table

Paramètres
  • cursor (sqlite3.Cursor) – cursor on a sqlite connection

  • table (string) – name of the table

  • exclude (list) – list of excluded columns

Renvoie

list of the table columns.

Type renvoyé

list

thyrsis.database.convert_database.convert_database(sitesdb)

Convert a database

Paramètres

sitesdb (string) – path of the databse to convert

Renvoie

None