From da1e54d5abb4482ca2accabbad0a1e1d65a9fc8f Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 6 Aug 2020 15:37:36 +0800 Subject: [PATCH] Add sql-cli --- tests/tests_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests_test.go b/tests/tests_test.go index 5aedc061..192160a0 100644 --- a/tests/tests_test.go +++ b/tests/tests_test.go @@ -64,6 +64,8 @@ func OpenTestConnection() (db *gorm.DB, err error) { // USE gorm; // CREATE USER gorm FROM LOGIN gorm; // sp_changedbowner 'gorm'; + // npm install -g sql-cli + // mssql -u gorm -p LoremIpsum86 -d gorm -o 9930 log.Println("testing sqlserver...") if dbDSN == "" { dbDSN = "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"