nette-database

Map database tables to typed Row entities in Nette Database with Explorer.

41|4|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/nette/claude-code --skill nette-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nette-database
Source: https://github.com/nette/claude-code/tree/main/plugins/nette/skills/nette-database
Command: npx skills add https://github.com/nette/claude-code --skill nette-database

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers in using Nette Database with Explorer to map tables to typed Row classes, enforce conventions, and perform safe queries.

Core Features & Use Cases

  • Database Explorer integration: Auto-map tables to typed Row classes for IDE support and navigable code.
  • Entity design patterns: Single App\Entity namespace with Row suffix, explicit property and relationship documentation.
  • Query patterns and navigation: Safe use of Selection API, relationship traversal, and join strategies to avoid raw SQL pitfalls.

Quick Start

Install nette/database in your project, map your product table to a ProductRow class, and fetch active products in a sample query.

Frequently Asked Questions about nette-database

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

FAQPage Schema
How do I map database tables to typed Row entities in PHP using Nette Database?

You map database tables to typed Row entities by using Explorer to auto-map tables to Row classes within a single App\Entity namespace, enabling IDE support and navigable code for your PHP project.

What is the best way to design entity relationships with Nette Database Explorer?

The best way to design entity relationships with Nette Database Explorer is to use a single App\Entity namespace with a Row suffix, explicitly documenting properties and relationship traversal paths to ensure safe queries and clear navigable code.

How does the Selection API handle safe queries and join strategies in Nette Database?

The Selection API handles safe queries in Nette Database by providing structured relationship traversal and join strategies, preventing raw SQL pitfalls while fetching data through mapped Row entities in your PHP application.

Do I need PHP 7 and specific dependencies to use Nette Database Explorer for ORM-like data access?

Yes, you need PHP 7 or higher with Nette Database and Explorer installed to use ORM-like data access, entity design, and query patterns for mapping tables to typed Row classes and enforcing conventions.

How do I fetch active products using Nette Database Explorer without writing raw SQL?

You fetch active products without raw SQL by mapping your product table to a ProductRow class, then using the Selection API to execute a sample query that safely retrieves the filtered data through the Explorer layer.