Skip to content

Commit

Permalink
Add method documentation for bulk insert
Browse files Browse the repository at this point in the history
  • Loading branch information
BubuDavid committed Nov 24, 2023
1 parent 5bed841 commit 7e1dfb6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pydbsmgr/utils/sql_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,17 @@ def bulk_insert_from_csv(
Parameters:
----------
file_name (`str`): Name of the csv file in Azure Blob Storage
file_path (`str`): Path to the file in Azure Blob Storage
db_table_name (`str`): Name of the table in which the data is being inserted
sas_str (`str`): SAS token for the storage account
blob_storage_name (`str`): Name of the storage account
credential_name (`str`): Name of the SQL credentials
data_source_name (`str`): Name of the external data source
sas_str (`str`): SAS string to the storage account
storage_connection_string (`str`): Connection string to the storage account
storage_account (`str`): Name of the storage account
container_name (`str`): Name of the container in which the data is being inserted
credential_name (`str`): Name of the credentials
data_source_name (`str`): Name of the data source
char_length (`int`): Length of varchar fields for text columns
overwrite (`bool`): If `True` it will delete and recreate the table before inserting new data
if `False` it will append the new data onto the end of the existing table
Returns:
----------
`bool`: True if the data was inserted successfully
Expand Down

0 comments on commit 7e1dfb6

Please sign in to comment.