Post

Visualizzazione dei post da maggio, 2016

Data Model Generation for PostgreSQL

DinGo is a simple Go code generator that is useful to produce Microservice applications starting from the database schema. PostgreSQL supported As I showed in the previous post DinGo produces code reading the database schema and its first version supported only the MySQL database, but now after a not so short and unfortunately not continuous work, finally the PostgreSQL database has been supported. The current release (2.0.beta) contains all the templates and producers for providing microservices that can operate on Postgres. This DinGo release is still in beta because it requires a few tests and there are also some limitations. Postgres array types are not supported and I don't know if they will be in the future. Reading the Information Schema PostgreSQL offers two methods for retrieving meta-data about the table's schema using the system catalogs ( pg_class, pg_user, pg_view, ...) or querying the information_schema (available since Postgres 7.4). DinGo has