书栈网 · BookStack 本次搜索耗时 0.021 秒,为您找到 243 个相关结果.
  • Connection API

    Connection API Main API Connection API ConnectionManager API Connection API Main API createConnection() - 创建一个新连接并将其注册到全局连接管理器中。 如果省略connection options参数,则从ormconfig 文...
  • Caching Results

    Caching queries Caching queries You can cache results selected by these QueryBuilder methods: getMany , getOne , getRawMany , getRawOne and getCount . You can also cache r...
  • 一对一

    一对一 一对一 一对一是一种 A 只包含一个 B 实例,而 B 只包含一个 A 实例的关系。我们以User 和Profile 实体为例。 用户只能拥有一个配置文件,并且一个配置文件仅由一个用户拥有。 import { Entity , PrimaryGeneratedColumn , Column } from "ty...
  • Loading all entities from the directory

    Loading all entities from the directory Loading all entities from the directory Later, when we create more entities we need to add them to the entities in our configuration.Thi...
  • Creating a many-to-one / one-to-many relation

    Creating a many-to-one / one-to-many relation Creating a many-to-one / one-to-many relation Let’s create a many-to-one / one-to-many relation.Let’s say a photo has one author, ...
  • 加载目录中所有实体

    加载目录中所有实体 加载目录中所有实体 之后当我们创建更多实体时,都需要将一一它们添加到配置中的实体中,但是这不是很方便,所以我们可以设置整个目录,从中连接所有实体并在连接中使用: import { createConnection } from "typeorm" ; createConnection ({ typ...
  • Recipes

    CRUD generator Hot reload MikroORM TypeORM Mongoose Sequelize Router module Swagger Health checks CQRS Compodoc Prisma Serve static
  • Loading objects with their relations

    Loading objects with their relations Loading objects with their relations Now let’s load our photo and its photo metadata in a single query.There are two ways to do it - using ...
  • Hot reload

    Hot Reload With CLI Installation Configuration Hot-Module Replacement Without CLI Installation Configuration Hot-Module Replacement Example TypeORM Hot Reload The high...
  • 取出关系对象的数据

    取出关系对象的数据 取出关系对象的数据 在一个查询中加载 photo 及 photo metadata 有两种方法。使用find * 或使用QueryBuilder 。我们先使用find * 方法。 find * 方法允许你使用FindOneOptions / FindManyOptions 接口指定对象。 import { createC...