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 reason behind it is to improve developer experience, as right now when running a command like hanami db reset it will fail if the user has any other ongoing connection, like a connection to db client(like dbeaver), or a hanami console session.
Couple other possible approaches are:
# create a dedicated method for force dropdefforce_drop_commandsystem(cli_env_vars,"dropdb --force #{escaped_name}")end
# force as option/paramdefdrop_command(force=false)command_prefix=force ? "dropdb --force" : "dropdb"system(cli_env_vars,"#{command_prefix}#{escaped_name}")end
Context:
The reason behind it is to improve developer experience, as right now when running a command like
hanami db reset
it will fail if the user has any other ongoing connection, like a connection to db client(like dbeaver), or ahanami console
session.Couple other possible approaches are:
Reference:
https://www.postgresql.org/docs/current/sql-dropdatabase.html#id-1.9.3.108.6
PR with proposal:
#81
The text was updated successfully, but these errors were encountered: