Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERDatabase ¶
func DatabaseERFromDB ¶
func DatabaseERFromDB(database *sqlx.Database, dialect builder.Dialect) *ERDatabase
Example ¶
package main import ( "encoding/json" "gitee.com/go-genie/sqlx/er" "gitee.com/go-genie/sqlx/generator/__examples__/database" "gitee.com/go-genie/sqlx/postgresqlconnector" ) func main() { ers := er.DatabaseERFromDB(database.DBTest, &postgresqlconnector.PostgreSQLConnector{}) _, _ = json.MarshalIndent(ers, "", " ") }
Output:
Click to show internal directories.
Click to hide internal directories.