backend-datasources

Configure Drumr backend datasource wiring and direct database access.

Updated Sep 16, 2025
One-click install
npx skills add https://github.com/slingr-stack/qa-test-drumr --skill backend-datasources
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-datasources
Source: https://github.com/slingr-stack/qa-test-drumr/tree/main/project-management-app/.agents/skills/backend-datasources
Command: npx skills add https://github.com/slingr-stack/qa-test-drumr --skill backend-datasources

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you configure Drumr backend datasources, connect models to persistence, and safely run direct database operations without guesswork.

Core Features & Use Cases

  • Datasource setup and startup configuration for SQL-backed apps, including managed schema behavior and environment-driven connection settings.
  • Model linkage and injection patterns for actions, services, and workflows that need database access, native queries, or transactions.
  • Use it when you need to resolve connection failures, attach a model to the correct datasource, or choose the right query method for reads, pagination, and bulk jobs.

Quick Start

Ask for help setting up a Drumr backend datasource, linking models to it, and selecting the right query and transaction patterns for your app.

Frequently Asked Questions about backend-datasources

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

FAQPage Schema
How do I configure a backend datasource for SQL-backed app initialization?

Backend datasource configuration is handled by registering a DataSource and applying TypeOrmSqlDataSource settings, including managed schema behavior and environment-driven connection properties, during your app's initialization phase to establish reliable SQL persistence.

How do I link models to a datasource for use in backend actions and services?

Model linkage to a datasource uses specific injection patterns that make persistence available across backend actions, services, and workflows, ensuring your database access layer is properly wired and accessible wherever direct queries or transactions are required.

What is the best way to run native queries and transactions through a backend datasource?

The best way to run native queries and transactions is by using the datasource's built-in query methods, which support selecting the appropriate approach for reads, pagination, and bulk jobs while maintaining transactional integrity during backend processing.

Can I enforce permission-aware scoping when running direct database queries?

Yes, permission-aware scoping is supported for direct database queries, ensuring that native queries executed through the injected datasource respect your application's defined access rules and security constraints automatically.

Why does my Drumr backend datasource connection fail during app startup?

Datasource connection failures during startup often stem from incorrect environment-driven connection settings or mismanaged schema behavior, which can be resolved by verifying your TypeOrmSqlDataSource configuration and DataSource registration parameters.

Do I need a managed schema setting for my backend SQL datasource?

A managed schema setting is required when your SQL-backed app needs automated database schema synchronization, allowing the TypeOrmSqlDataSource to handle schema changes directly during datasource initialization and startup.