Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linqpad running custom code before each query

Tags:

linqpad

I almost ran a query i did not want to against a production db today.

As such i would like to check before all my queries that this.Connection.DataSource is not my production database... and if it is then show a messagebox warning me.

Is this possible?

like image 553
4imble Avatar asked Feb 25 '14 16:02

4imble


1 Answers

Check out the latest beta. You can now flag connections as 'Production' and you'll see an orange warning banner in the editor margin whenever you use that connection:

Production Connection

like image 152
Joe Albahari Avatar answered Oct 25 '22 13:10

Joe Albahari