diff options
Diffstat (limited to 'tests/stdlib/tdb.nim')
-rw-r--r-- | tests/stdlib/tdb.nim | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/stdlib/tdb.nim b/tests/stdlib/tdb.nim index dbb0283bf..e69de29bb 100644 --- a/tests/stdlib/tdb.nim +++ b/tests/stdlib/tdb.nim @@ -1,25 +0,0 @@ -discard """ - action: "compile" -""" - - -import db_mysql, db_odbc, db_postgres -import os -from stdtest/specialpaths import buildDir - - -block: - block: - const dbName = buildDir / "db.sqlite3" - var db = db_mysql.open(dbName, "", "", "") - discard tryInsertId(db, sql"INSERT INTO myTestTbl (name,i,f) VALUES (?,?,?)", "t") - - block: - const dbName = buildDir / "db.odbc" - var db = db_odbc.open(dbName, "", "", "") - discard tryInsertId(db, sql"INSERT INTO myTestTbl (name,i,f) VALUES (?,?,?)", "t") - - block: - const dbName = buildDir / "db.postgres" - var db = db_postgres.open(dbName, "", "", "") - discard tryInsertId(db, sql"INSERT INTO myTestTbl (name,i,f) VALUES (?,?,?)", "t") |