Overview of Korm features
masterKorm is a high-performance ORM and framework for Go, inspired by the Django Framework. It is designed for concurrency and high throughput, offering features such as:
- AutoMigrate: Automatically create or update database schemas directly from Go structs.
- Admin Dashboard: A built-in dashboard with real-time log access via websockets and PWA support.
- Shared Network Bus: A websocket-based PubSub system (
WithBus) to synchronize data between multiple Korm instances. - Interactive Shell: A command-line interface for performing CRUD operations using
korm.WithShell(). - Built-in Authentication: Middleware support via
korm.Auth,korm.Admin, orkorm.BasicAuth. - Advanced Querying: Support for named queries (
QueryNamed,WhereNamed), nested/embedded structs, and slice of structs through joins. - Hooks: Lifecycle hooks including
OnInsert,OnSet,OnDelete, andOnDrop. - Observability: Integrated PPROF profiling, Prometheus metrics, and query logging via
korm.LogsQueries(). - Database Compatibility: Compatible with the standard
database/sqlpackage; usekorm.GetConnection()to access the underlying connection.
Supported Databases:
- Sqlite
- Mysql
- Maria
- Postgres
- Cockroach