21 lines
355 B
Go
21 lines
355 B
Go
|
package logdb
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
_ "github.com/go-sql-driver/mysql"
|
||
|
)
|
||
|
|
||
|
// charset: utf8mb4
|
||
|
// db: test_log
|
||
|
// hosts: [192.168.6.101, 192.168.6.102, 192.168.6.103, 192.168.6.104, 192.168.6.105]
|
||
|
// password: ag-spider-log
|
||
|
// port: 4000
|
||
|
// user: spider
|
||
|
|
||
|
func TestSelect(t *testing.T) {
|
||
|
logdb := NewLogDB("logdb.yaml")
|
||
|
t.Error(logdb)
|
||
|
logdb.Connect()
|
||
|
}
|