You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior is that a confirmation prompt is shown whenever the script is used. I think that it would be less redundant if the confirmation prompt were shown if there exists a table in the specified schema.
I think that this behavior can be changed by adding a conditional that checks if a table exists in the specified schema in the following part of the code (specifically, where choice is).
# If the user has not explicitly asked for loading the body, we replace it with NULL
ifnotargs.with_post_body:
specialRules[("Posts", "Body")] ="NULL"
choice=input("This will drop the {} table. Are you sure [y/n]?".format(table))
iflen(choice) >0andchoice[0].lower() =="y":
I think doing this is necessary for making the script fully scriptable since the current behavior requires the interaction of the user or some workaround for automating it.
The text was updated successfully, but these errors were encountered:
This is a feature request.
The current behavior is that a confirmation prompt is shown whenever the script is used. I think that it would be less redundant if the confirmation prompt were shown if there exists a table in the specified schema.
I think that this behavior can be changed by adding a conditional that checks if a table exists in the specified schema in the following part of the code (specifically, where
choice
is).stackexchange-dump-to-postgres/load_into_pg.py
Lines 391 to 401 in 49d8358
I think doing this is necessary for making the script fully scriptable since the current behavior requires the interaction of the user or some workaround for automating it.
The text was updated successfully, but these errors were encountered: