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