{"repo":"jaobrabo123/VSRepository","free":true,"listed":false,"github":"https://github.com/jaobrabo123/VSRepository","clone":"git clone https://github.com/jaobrabo123/VSRepository.git","description":"A repository pattern library for Prisma","language":"TypeScript","stars":10,"topics":["orm","prisma","repository","typescript","vsrepo","vsrepository","jparepository"],"license":"MIT","category":"databases-storage","readme_excerpt":"VSRepository 🇺🇸 You're reading the English version. 🇧🇷 Ler em português Repository pattern library for projects using Prisma , with full TypeScript support and automatic type inference . VSRepository lets you create strongly-typed repositories with: - Automatic base methods : get , getOrThrow , getList , save , saveList , remove , removeList , patch , patchList , merge , getAll , total , has - Native soft-delete : softRemove , softRemoveList , restore , restoreList - Dynamic methods inferred from their name: findOneByEmail , findManyPaginated , updateById , deleteManyByNameStartsWith - Reusable select models for different data projections - Type safety across 100% of operations - Native Prisma transactions (automatic in saveList and patchList ) - Extensibility with custom methods 💡 Want to see all of this in practice? The repository's examples/ folder has commented, runnable examples for every feature — see the Practical examples section below. --- Table of contents - Installation - Generating the types - Basic usage - Class-based approach (DynamicRepository) - NestJS integration - Base methods - Soft-delete - Batch operations - Merge - Configuring the base methods - Select Models - Raw select (options.select) - Include Models - Raw include (options.include) - Required Where - Default Ordering - see option - Dynamic methods - Available prefixes - Field filters - Logical operators - Relation filters - Pagination and ordering suffixes - Distinct - Method configuration - Ag","default_branch":null,"files":null,"tree":[],"storefront":"/r/jaobrabo123","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jaobrabo123/VSRepository/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}