sqlalchemy-diff icon indicating copy to clipboard operation
sqlalchemy-diff copied to clipboard

Allow optional aliases for 'left' and 'right'

Open dusktreader opened this issue 7 years ago • 2 comments

It would be nice to have the output in result.errors have aliases substituted for 'left' and 'right'

Something like,

result = compare(left_uri, right_uri, left_alias='alpha_db', right_alias='omega_db')

This would be really useful in the unit tests I'm writing so failures in the results would indicate which db is which

dusktreader avatar Jan 08 '18 21:01 dusktreader

That is a nice idea. Shouldn't be too tricky to add. Pull requests are welcome ;-)

mattbennett avatar Jan 12 '18 07:01 mattbennett

@mattbennett I might have some time to do this. Been really busy lately, but things are going to be slower for the next week.

dusktreader avatar Jan 12 '18 17:01 dusktreader