1 个仓库
Specifying related entities to be eagerly loaded based on runtime request parameters.
Distinct from Relationship Count Aggregators: Focuses on the dynamic request-driven nature of loading, rather than static eager loading.
Explore 1 awesome GitHub repository matching data & databases · Dynamic Relationship Loading. Refine with filters or upvote what's useful.
本项目是一个用于 Laravel 应用程序的 Eloquent 查询构建器封装器和 REST API 查询解析器。它将 HTTP 请求参数转换为数据库查询,为 API 端点提供动态过滤、排序和关系加载。 该系统通过基于别名的模式抽象将外部 API 接口与存储层解耦,允许公共字段名映射到私有数据库列。它支持嵌套关系的动态包含和聚合计数,以及通过可调用类和闭包为过滤器和排序执行自定义程序逻辑。 功能覆盖面包括通过字段选择进行数据投影,以及基于请求参数的结果排序。它进一步提供了使用点符号进行基于关系的过滤的机制,与本地模型作用域的集成,以及对软删除记录可见性的控制。
Loads specified relationships and nested relations based on parameters passed in the request.