Menu
Go language gets graph-based ORM

Go language gets graph-based ORM

Called ent, the open source entity framework features an API for modeling any database schema or graph structure as Go objects.

Credit: Paweł Czerwiński

With the ent open source project, an Israeli Facebook developer is providing the Google-developed Go language with an entity framework, intended to make it easier to build and maintain Go applications with complex data models.

Providing ORM (object-relational mapping) for modeling and querying data, the ent framework provides an API for modeling any database schema as Go objects. Users can run queries and aggregations and traverse graph structures. Underlying ent are the following principles:

  • Modeling a database schema as a graph structure.
  • Defining schema as programmatic Go code.
  • Static typing based on code generation.
  • Easy-to-write database queries and graph traversals.
  • An ability to extend and customize using Go templates.

The schema configuration for ent is verified by entc, the ent codegen, which generates an idiomatic, statically typed API. The ent framework supports MySQL, Gremlin, and, primarily for testing, SQLite. The technology was first introduced in October 2019, arising out of an effort at Facebook to develop a graph-based ORM for Go.

Releases of ent have been arriving roughly every few weeks for the past year. Version 0.6.0 was released last week, accessible on GitHub. A roadmap for ent 1.0 includes capabilities such as JSON type predicates and horizontal sharding.

Go is an open source programming language created by Google that features concurrency and functional programming capabilities. It is perhaps best known as the language used to develop Docker and Kubernetes in the cloud-native container ecosystem.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Events

Why experience is the new battleground for partners

Join us for an exclusive webinar, in association with Hewlett Packard Enterprise and Technology Services Industry Association (TSIA) and learn about the latest industry insights and how technology services continue to evolve to deliver differentiated value, and how partners can be successful in 2021 and beyond.

Featured

Slideshows

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

The leading female front runners of the New Zealand ICT industry joined together for the annual Reseller News Women in ICT Awards event at the Hilton in Auckland, during which hundreds of guests celebrated 13 outstanding individuals who won awards, chosen from more than 50 finalists representing over 30 organisations.

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards
Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

More than 500 channel leaders gathered in Auckland on 21 October at the ​Reseller News Innovation Awards ​2020 to celebrate the achievements of the New Zealand technology industry's top partners, start-ups, vendors, distributors and individuals.

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners
Show Comments