DenoGres 2.0 is now live! Included in this version is a new suite of features built on top of DenoGres 1.0, granting developers more tools and reasons

DenoGres 2.0 Unleashed

submited by
Style Pass
2022-09-22 17:00:32

DenoGres 2.0 is now live! Included in this version is a new suite of features built on top of DenoGres 1.0, granting developers more tools and reasons to work within DenoGres.

A user-friendly GUI, bidirectional database syncing, database seeding, and migration logging are but a handful of features included in DenoGres 2.0!

Today we are releasing the next iteration of DenoGres, version 2.0. Version 2.0 comes with a significant number of improvements to core functionality which make DenoGres not only easier to use but also a more comprehensive ORM solution linking PostgreSQL to the Deno runtime.

One core feature implemented as a part of version 2.0 is the addition of bidirectional database synchronization. Upon invoking the command ‘ — db-pull’, DenoGres will create a model.ts file. This file represents the user’s database schema from PostgreSQL in TypeScript object form. Any changes that occur within PostgreSQL can be pulled into the user’s project directory by invoking ‘ — db-pull’, which will overwrite the current model file in DenoGres. Another piece of functionality that lives within this feature is the ability to sync changes to the PostgreSQL database schema through the ORM model (model.ts) in DenoGres. If a user wants to make changes to their PostgreSQL schema down the line, they can do so within their own IDE by modifying their model.ts file and invoking the command ‘ — db-sync’. Invoking ‘ — db-sync’ will then use the model.ts as its base and synchronize the PostgreSQL database schema to match the Models from the model.ts file.

Note! All database schema changes can be synced one by one, however, it is much more efficient to make all your changes at once and then sync those changes together.

Leave a Comment