dbplyr SQL Translation Guide

•
511
•

Automates the process of mapping R functions to database-specific SQL syntax for dbplyr backends.

This skill provides a structured workflow for extending dbplyr by adding translations for R functions like string manipulation, date/time operations, and window functions into their database-specific SQL equivalents. It ensures consistent behavior across different database dialects by enforcing a research-first approach, providing standardized code patterns for scalar and aggregate translations, and offering integrated testing and documentation steps for maintainable backend development.

主要功能

01Research-driven SQL syntax verification for specific database dialects
02Automated documentation updates for backend-specific Roxygen tags
03Interactive testing and snapshot test generation workflows
04Standardized patterns for scalar, aggregate, and window function translations
05Integration with dbplyr helper functions like sql_glue and sql_cast
06511 GitHub stars

使用场景

01Implementing window function translations for advanced data manipulation
02Adding support for a new database-specific string function in a dbplyr backend
03Porting complex R logic like grepl or round to a specific SQL dialect