Gorm 2.0 Released!!

GORM 2.0 is a rewrite from scratch, it introduces some incompatible-API change and many improvements

Highlights

  • Performance Improvements
  • Modularity
  • Context, Batch Insert, Prepared Statment Mode, DryRun Mode, Join Preload, Find To Map, Create From Map, FindInBatches supports
  • Nested Transaction/SavePoint/RollbackTo SavePoint supports
  • SQL Builder, Named Argument, Group Conditions, Upsert, Locking, Optimizer/Index/Comment Hints supports, SubQuery improvements, CRUD with SQL Expr and Context Valuer
  • Full self-reference relationships support, Join Table improvements, Association Mode for batch data
  • Multiple fields allowed to track create/update time, UNIX (milli/nano) seconds supports
  • Field permissions support: read-only, write-only, create-only, update-only, ignored
  • New plugin system, provides official plugins for multiple databases, read/write splitting, prometheus integrations…
  • New Hooks API: unified interface with plugins
  • New Migrator: allows to create database foreign keys for relationships, smarter AutoMigrate, constraints/checker support, enhanced index support
  • New Logger: context support, improved extensibility
  • Unified Naming strategy: table name, field name, join table name, foreign key, checker, index name rules
  • Better customized data type support (e.g: JSON)

Comments

Popular posts from this blog

Headlines are Zoom e2e encryption,Amazon's face recognition incorrectly matches,Android 11,Go 1.15 and What’s new is Angular 10 & Vue.Js 3.0

JAVA 14

Java 14 Continues.. new APIs of JDK14 and JVM Changes