gitee.com/eden-framework/sqlx@v0.0.3/er/er_test.go (about) 1 package er_test 2 3 import ( 4 "encoding/json" 5 "fmt" 6 "testing" 7 8 "gitee.com/eden-framework/sqlx/er" 9 "gitee.com/eden-framework/sqlx/generator/__examples__/database" 10 "gitee.com/eden-framework/sqlx/postgresqlconnector" 11 ) 12 13 func TestDatabaseERFromDB(t *testing.T) { 14 er := er.DatabaseERFromDB(database.DBTest, &postgresqlconnector.PostgreSQLConnector{}) 15 data, _ := json.MarshalIndent(er, "", " ") 16 17 fmt.Println(string(data)) 18 }