Skip to content

Commit

Permalink
Add convert_table_file_to_insert_statement method to top init file
Browse files Browse the repository at this point in the history
To be able to import it directly when using package not as CLI tool.
  • Loading branch information
piotrgredowski committed Apr 12, 2022
1 parent 5da7cfa commit 3ae04f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions table2sql/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__version__ = "1.0.0"

from .main import convert_table_file_to_insert_statement # noqa: F401
4 changes: 3 additions & 1 deletion table2sql/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
type=str,
help="Name of table to use in SQL insert statement.",
)
@click.option("--delimiter", default=",", type=str, help="Delimiter of CSV file.", show_default=True)
@click.option(
"--delimiter", default=",", type=str, help="Delimiter of CSV file.", show_default=True
)
@click.option(
"--has-types-row",
is_flag=True,
Expand Down

0 comments on commit 3ae04f6

Please sign in to comment.