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 ( "github.com/kunlun-qilian/sqlx/v2/er" "github.com/kunlun-qilian/sqlx/v2/generator/__examples__/database" "github.com/kunlun-qilian/sqlx/v2/postgresqlconnector" "github.com/kunlun-qilian/utils/json" ) func main() { ers := er.DatabaseERFromDB(database.DBTest, &postgresqlconnector.PostgreSQLConnector{}) _, _ = json.MarshalIndent(ers, "", " ") }
Output:
Click to show internal directories.
Click to hide internal directories.