Exporter Module

SQL export functionality for GS1 GPC.

This module provides functions for exporting database tables to SQL files.

gs1_gpc.exporter.dump_database_to_sql(db_file_path, language_code='en')[source]

Dump all GPC tables from the SQLite database to a SQL file.

Parameters:
  • db_file_path (str) – Path to the SQLite database file

  • language_code (str) – Language code to use in the filename

Returns:

Path to the SQL dump file or None if failed

Return type:

str