# Diesel vs GORM

**Leader by vioscaleAI score:** Diesel

| Attribute | Diesel | GORM |
|---|---|---|
| **vioscaleAI score** | 62.1 (50% (medium)) | 52 (48% (low)) |
| activity.commits_last_30d | 100 | 1 |
| adoption.dependent_repos | 3,691 | 22,361 |
| adoption.github_stars | 14,201 | 39,980 |
| content.faq | `[{"answer":"An open-source object-relational mapping and query builder library for Rust that enables compile-time verification of database interactions and supports multiple database backends through composable query abstractions. It is indexed under ORM & Database Tools.","source":"https://diesel.rs","question":"What is Diesel?","confidence":0.6},{"answer":"Diesel is open source, so it can be self-hosted and used at no licence cost. It is released under the Apache-2.0 licence. Pricing changes often, so verify at source before relying on it.","source":"https://diesel.rs","question":"Is Diesel free to use?","confidence":0.6},{"answer":"Yes. Diesel is published under the Apache-2.0 licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/diesel-rs/diesel","question":"Is Diesel open source?","confidence":0.95}]` | `[{"answer":"GORM is a free ORM library for Go that simplifies database operations through an intuitive API, supporting multiple database systems, advanced querying, schema migrations, and relationship management. It is indexed under ORM & Database Tools.","source":"https://gorm.io","question":"What is GORM?","confidence":0.6},{"answer":"GORM is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://gorm.io","question":"Is GORM free to use?","confidence":0.6},{"answer":"Yes. GORM can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://gorm.io","question":"Can GORM be self-hosted?","confidence":0.6},{"answer":"We have confirmed 4 integrations for GORM, including SQLite, PostgreSQL, MySQL and GaussDB. This is what we could verify from public sources, so the vendor may support others we have not indexed.","source":"https://gorm.io","question":"What does GORM integrate with?","confidence":0.6},{"answer":"Yes. GORM is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/go-gorm/gorm","question":"Is GORM open source?","confidence":0.95}]` |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A Rust library that provides type-safe database access with compile-time verification, featuring both a query builder API and raw SQL support across multiple database systems including PostgreSQL, MySQL, and SQLite. | GORM is a free ORM library for Go that simplifies database operations through an intuitive API, supporting multiple database systems, advanced querying, schema migrations, and relationship management. |
| features.capabilities | `{"raw_sql":true,"multi_db":true,"languages":"Rust","relations":true,"migrations":true,"studio_gui":false,"schema_first":true,"type_safe_queries":true,"connection_pooling":true}` | `{"raw_sql":true,"multi_db":true,"languages":"Go","relations":true,"migrations":true,"studio_gui":false,"schema_first":false,"type_safe_queries":true,"connection_pooling":true}` |
| integrations.count | 5 | 4 |
| integrations.list | `[{"name":"PostgreSQL","native":true},{"name":"MySQL","native":true},{"name":"SQLite","native":true},{"name":"Oracle","native":true},{"name":"Firebird","native":true}]` | `[{"name":"SQLite"},{"name":"PostgreSQL"},{"name":"MySQL"},{"name":"GaussDB"}]` |
| language.primary | Rust | Go |
| license.spdx | Apache-2.0 | MIT |
| pricing | `{"type":"open_source","sourceUrl":"https://diesel.rs","retrievedAt":"2026-10-13T13:49:22.704Z"}` | `{"type":"open_source","freeTier":true,"sourceUrl":"https://gorm.io","retrievedAt":"2026-08-14T08:30:27.529Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | open_source | open_source |
| pricing.price_level | free | free |
| release.cadence_days | 32 | 18 |
| release.history | `[{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.14","date":"2026-10-07T14:04:16Z","type":"stable","version":"v2.3.14"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.13","date":"2026-09-04T14:56:06Z","type":"stable","version":"v2.3.13"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.12","date":"2026-08-07T06:07:49Z","type":"stable","version":"v2.3.12"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.11","date":"2026-07-10T06:02:47Z","type":"stable","version":"v2.3.11"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.10","date":"2026-06-05T06:30:07Z","type":"stable","version":"v2.3.10"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.9","date":"2026-04-30T12:44:17Z","type":"stable","version":"v2.3.9"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.8","date":"2026-04-24T09:25:29Z","type":"stable","version":"v2.3.8"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.7","date":"2026-03-13T07:08:59Z","type":"stable","version":"v2.3.7"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.6","date":"2026-01-23T07:57:29Z","type":"stable","version":"v2.3.6"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.5","date":"2025-12-19T07:31:24Z","type":"stable","version":"v2.3.5"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.4","date":"2025-11-26T16:29:31Z","type":"stable","version":"v2.3.4"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.3","date":"2025-10-24T13:57:15Z","type":"stable","version":"v2.3.3"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.2","date":"2025-09-19T09:18:32Z","type":"stable","version":"v2.3.2"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.3.0","date":"2025-09-12T12:42:57Z","type":"stable","version":"v2.3.0"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.12","date":"2025-07-11T12:28:38Z","type":"stable","version":"v2.2.12"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.11","date":"2025-06-18T15:18:26Z","type":"stable","version":"v2.2.11"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.10","date":"2025-04-25T06:43:32Z","type":"stable","version":"v2.2.10"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.9","date":"2025-04-04T11:29:52Z","type":"stable","version":"v2.2.9"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.8","date":"2025-03-03T17:47:32Z","type":"stable","version":"v2.2.8"},{"url":"https://github.com/diesel-rs/diesel/releases/tag/v2.2.7","date":"2025-01-31T10:19:17Z","type":"stable","version":"v2.2.7"}]` | `[{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.2","date":"2026-06-25T07:21:23Z","type":"stable","version":"v1.31.2"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.1","date":"2025-11-02T14:12:23Z","type":"stable","version":"v1.31.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.0","date":"2025-09-12T06:51:58Z","type":"stable","version":"v1.31.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.5","date":"2025-09-08T11:22:17Z","type":"stable","version":"v1.30.5"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.4","date":"2025-09-08T09:22:31Z","type":"stable","version":"v1.30.4"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.3","date":"2025-09-04T13:16:17Z","type":"stable","version":"v1.30.3"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.2","date":"2025-08-28T06:10:24Z","type":"stable","version":"v1.30.2"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.1","date":"2025-07-24T02:38:58Z","type":"stable","version":"v1.30.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.0","date":"2025-05-25T07:43:14Z","type":"stable","version":"v1.30.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.26.1","date":"2025-05-07T06:59:25Z","type":"stable","version":"v1.26.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.26.0","date":"2025-04-25T08:23:45Z","type":"stable","version":"v1.26.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.21.0","date":"2021-03-04T11:37:30Z","type":"stable","version":"v1.21.0"}]` |
| security.scorecard | 6.9 | 4 |
| security.vulnerabilities | `{"count":6,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=cargo&package_name=diesel&per_page=100","last_12m":4,"max_severity":"CRITICAL"}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=go&package_name=gorm.io%2Fgorm&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (ORM & Database Tools)

| Capability | Diesel | GORM |
|---|:--:|:--:|
| **Core** |  |  |
| Type-safe queries | ✓ | ✓ |
| Schema migrations | ✓ | ✓ |
| Relations / joins API | ✓ | ✓ |
| Languages | Rust | Go |
| **Modelling** |  |  |
| Schema-first modelling | ✓ | ✗ |
| **Flexibility** |  |  |
| Raw SQL escape hatch | ✓ | ✓ |
| **Portability** |  |  |
| Multiple database backends | ✓ | ✓ |
| **Ops** |  |  |
| Connection pooling | ✓ | ✓ |
| **DX** |  |  |
| Data browser / studio | ✗ | ✗ |

*Source: vioscaleAI. Generated 2026-10-17T15:34:56.553Z. "-" = undocumented, not absent.*
