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
It makes working with query (in your integration tests) a bit easier because you get immediate feedback:
awaitconnection.ExecScriptAsync($""" CREATE TABLE {table} ( Id int NOT NULL PRIMARY KEY IDENTITY(1, 1), Data varchar(8001) );""").ThrowOnError();
Output:
System.Exception: Msg 131, Level 15, State 2, Server 85186a74865e, Line 3
System.Exception
Msg 131, Level 15, State 2, Server 85186a74865e, Line 3
The size (8001) given to the column 'Data' exceeds the maximum allowed for any data type (8000).
Alternatives
make the ExecScriptAsync fail or have an overload to do so.
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered:
Problem
When setting up an environment for integration tests I found out that I was lacking feedback because the
ExecScriptAsync
silently fails.Solution
I've created this small extension method to enhance the
ExecScriptAsync
a little:Benefit
It makes working with query (in your integration tests) a bit easier because you get immediate feedback:
Output:
Alternatives
make the
ExecScriptAsync
fail or have an overload to do so.Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: