Database Utils
by KGriffon
Database Utils is a Fabric library that gives mod developers a configuration-managed way to connect their mods to SQL databases.
What it does
The library targets mod developers who want to use a database without rebuilding the setup each time. Its main job is to read database settings from a configuration file, which is created automatically in the config folder the first time the mod loads, and to hand those settings to a developer's own query class. An example file named after the mod ID shows the expected layout.
A developer defines a custom class that extends DatabaseQueries and holds the SQL-related methods. The base class exposes helpers such as getType, so a custom implementation can stay compatible with the configured database. Because the configuration is separate from the code, the same implementation can work with multiple databases, and a database instance has to be created before queries run.
Database Utils is open source under the MIT License and runs on the client, the server or both, so it can be installed on either side. Files are published for Fabric only, 1.20 – 26.2, with 1.0.0+26.1 for 26.2 as the latest file.
Key features
Configuration-managed databases
Database connection settings are read from a properties file that is generated automatically in the config folder.
Custom query classes
A developer's class extends DatabaseQueries and collects the SQL methods the mod needs in one place.
Shared configuration object
A Config object provides the database settings, and a snippet from the example retrieves them and initializes a DatabaseQueries implementation.
Multiple database support
The same query implementation can be pointed at more than one database through configuration.
Compatibility
Latest build for each game version and loader.
26.x4 of 4 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
How it compares
Ledger Databases is server-side only, open source under the MIT License and published for Fabric across 1.20.4 – 26.2. MariaDBServerFabricMC is also server-side only and open source under the MIT License, but its files cover 1.19.3 – 1.20.4. Chest Sort is a client-side only, closed-source mod under All rights reserved for 1.21 – 26.2, so it does not overlap with a database library.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Database Utils | Fabric | 1.20 – 26.2 | Client or server, optional | 2026-07-14 |
| Ledger Databases | Fabric | 1.20.4 – 26.2 | Server-side only | 2026-04-01 |
| MariaDBServerFabricMC | Fabric | 1.19.3 – 1.20.4 | Server-side only | 2024-03-28 |
| Chest Sort | Fabric | 1.21 – 26.2 | Client-side only | 2026-07-09 |
Questions
Does Database Utils need Fabric API?
Does a server need Database Utils installed?
Which mod requires Database Utils?
Which Minecraft versions have files?
In the catalog
Database Utils is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 13,894 mods support Minecraft 26.2.
More from KGriffon
Similar mods
What the author says
This mod includes some utilities for working with databases. The most popular connectors are included directly in the mod JAR, which avoids having to import them into each mod and helps reduce the overall size of your projects. To import this library, you must add the following to your build.gradle file.
Official listing
- Modrinth page
- modrinth.com/mod/database-utils
- Owner
- KGriffon
- Published
- 2025-11-20
- Updated on Modrinth
- 2026-07-14
- Facts verified
- 2026-10-15
