Working on BackgroundService for Seq Logging
This commit is contained in:
parent
48578b216f
commit
7bcb7b0e66
9 changed files with 240 additions and 53 deletions
|
|
@ -63,33 +63,6 @@ namespace Tests.ConfigurationTests
|
|||
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void GetPostgresSearchPath()
|
||||
{
|
||||
//ALTER USER sathumper SET search_path TO ptmain, public;
|
||||
|
||||
var conn = Container.Resolve<IDbConnection>();
|
||||
|
||||
var result = conn.QuerySql("SHOW search_path;");
|
||||
using (var connw = new NpgsqlConnection(conn.ConnectionString + ";Password=3911"))
|
||||
{
|
||||
connw.Open();
|
||||
using (var cmd = new NpgsqlCommand("SHOW search_path; SELECT current_user;", connw))
|
||||
{
|
||||
using (var reader = cmd.ExecuteReader())
|
||||
{
|
||||
reader.Read();
|
||||
var r1 = $"Search path: {reader.GetString(0)}";
|
||||
reader.NextResult();
|
||||
reader.Read();
|
||||
var r2 = $"Current schema: {reader.GetString(0)}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
[TestMethod]
|
||||
public void TryGetActiveConfigurations()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue