Queryx 是Schema 優先且類型安全的Go ORM。 Queryx 使用schema.hcl來描述數據庫,在以下例子中定義了數據庫環境以及數據庫模型。 schema.hcl database “db” { adapter = “postgresql” config “development” { url = “postgres://postgres:postgres@localhost:5432/blog_development?sslmode=disable” } config “production” { url = env(“DATABASE_URL”) } generator “client-golang” {} model “Po… |
#類型安全Go #ORM #Queryx