bedrud-data

Define GORM data models, repositories, and migrations for SQLite and Postgres.

6|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/themadorg/bedrud --skill bedrud-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bedrud-data
Source: https://github.com/themadorg/bedrud/tree/main/.agents/skills/bedrud-data
Command: npx skills add https://github.com/themadorg/bedrud --skill bedrud-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bedrud Data Layer provides a cohesive data model, repository pattern, and DB initialization utilities to enable reliable persistence, testing, and admin DTOs for the bedrud server.

Core Features & Use Cases

  • GORM models for key entities (User, Room, Passkey, etc.) with migration-ready schemas.
  • Repository implementations and helpers for upserts, queries, and transactional operations.
  • DB initialization and test utilities (in-memory SQLite, migrations) and admin DTOs.

Quick Start

Initialize the bedrud data layer by wiring GORM models and repositories into your Go project.

Frequently Asked Questions about bedrud-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a GORM repository pattern in Go for SQLite and Postgres?

GORM repository pattern implementation uses models and repository layers with clear transactional semantics and upsert behavior. It applies across SQLite and Postgres deployments, including migration-ready schemas and DB initialization utilities.

How do I set up in-memory SQLite test helpers for GORM models in Go?

In-memory SQLite test helpers initialize the database and run migrations for GORM models. They provide DB initialization utilities and test utilities to ensure reliable persistence and testing for the server data layer.

Does this GORM data layer support transactional operations and upserts?

GORM data layer implementations support transactional operations and upserts through repository helpers. They define clear transactional semantics for queries and upsert behavior across key entities like User, Room, and Passkey.

What is the best way to manage GORM migrations and admin DTOs in a Go server?

Managing GORM migrations and admin DTOs involves defining migration-ready schemas and data transfer objects within the data model. The repository layer handles DB initialization and provides utilities for admin DTOs across deployments.

Can I use this Go ORM data layer across both SQLite and Postgres deployments?

The Go ORM data layer applies across both SQLite and Postgres deployments. It includes migration-ready GORM schemas and DB initialization utilities that support reliable persistence and testing in both environments.

What GORM models are included for key entities in the bedrud data layer?

GORM models for key entities include User, Room, and Passkey with migration-ready schemas. These models define the data structure and support the repository implementations and admin DTOs within the server data layer.