{"repo":"tensoar/cassandra-orm4nest","free":true,"listed":false,"github":"https://github.com/tensoar/cassandra-orm4nest","clone":"git clone https://github.com/tensoar/cassandra-orm4nest.git","description":"Cassandra ORM wrapper for nest.js based on cassandra-driver.js","language":"TypeScript","stars":15,"topics":["nestjs","cassandra","orm","typescript","nest"],"license":"MIT","category":"databases-storage","readme_excerpt":"cassandra-orm4nest Cassandra ORM wrapper for nestjs based on cassandra-driver package. 中文说明 Install use npm: use yarn: Usage Entity Definition use @Entity and @Column decorator define an entity: Module Definition Just like typeorm, you can use forRoot method to configure the database and use forFeature method to register entities: Service Defination Entities registered in forFeature method will generate corresponding mapper objects witch type is mapping.ModelMapper and can be injected by @InjectMapper decorator. As you can see, we can extend the BaseService class that implements the basic CRUD methods, includes: saveOne : Save a single entity. saveMany : Save multiple entities. finadAll : Query the full table, it is quivalent to the findAll method in the ModelMapper class in cassandra-driver , there is a limit on the number of results for a single query, default is 5000. findRealAll : Query the full table, unlike findAll , there is no limit on the number of results for a single query, because it will converted to eachRow method to perform query operations. findMany : Query based on conditions, it is quivalent to the find method in the ModelMapper class in cassandra-driver , there is a limit on the number of results for a single query, default is 5000. findRealMany : Query based on conditions, unlike findMany , there is no limit on the number of results for a single query, because it will converted to eachRow method to perform query operations. findOne : : Query based on condi","default_branch":null,"files":null,"tree":[],"storefront":"/r/tensoar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tensoar/cassandra-orm4nest/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."}