CodeLiturgy.Dashboard/CodeLiturgy.Views/Augeas/lens/tests/test_odbc.aug

70 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-12-05 02:07:41 +03:00
module Test_odbc =
let conf = "
# Example driver definitinions
#
#
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[MySQL]
# Driver from the MyODBC package
# Setup from the unixODBC package
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc.so
Setup = /usr/lib/libodbcmyS.so
FileUsage = 1
"
test Odbc.lns get conf =
{ }
{ "#comment" = "Example driver definitinions" }
{}
{}
{ }
{ "#comment" = "Included in the unixODBC package" }
{ "PostgreSQL"
{ "Description" = "ODBC for PostgreSQL" }
{ "Driver" = "/usr/lib/libodbcpsql.so" }
{ "Setup" = "/usr/lib/libodbcpsqlS.so" }
{ "FileUsage" = "1" }
{}
}
{ "MySQL"
{ "#comment" = "Driver from the MyODBC package" }
{ "#comment" = "Setup from the unixODBC package" }
{ "Description" = "ODBC for MySQL" }
{ "Driver" = "/usr/lib/libmyodbc.so" }
{ "Setup" = "/usr/lib/libodbcmyS.so" }
{ "FileUsage" = "1" }
}
test Odbc.lns put conf after
set "MySQL/Driver" "/usr/lib64/libmyodbc3.so";
set "MySQL/Driver/#comment" "note the path" = "
# Example driver definitinions
#
#
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[MySQL]
# Driver from the MyODBC package
# Setup from the unixODBC package
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so#note the path
Setup = /usr/lib/libodbcmyS.so
FileUsage = 1
"