我在使用 NestJS 的应用程序的开发模式中遇到此错误。
我的配置文件如下:
export const ORM_CONFIG: TypeOrmModuleOptions = {
keepConnectionAlive: true,
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres',
database: 'aimbra_education',
schema: 'security',
synchronize: true,
entities: [
--Entities
],
// migrations: [__dirname + '/migration/**/*.ts'],
// subscribers: [__dirname + '/subscriber/**/*.ts'],
};
Run Code Online (Sandbox Code Playgroud)
我导入到:
@Module({
imports: [
TypeOrmModule.forRoot(ORM_CONFIG),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
Run Code Online (Sandbox Code Playgroud)
到目前为止,我无法确定为什么它在生产中工作并且在开发模式下无法查看我的修改的错误。
我需要帮助来定义Deque类型的STD容器的最大尺寸。
在这种情况下,我将必须在数据结构中的给定子项中存储最大数量的客户端,如下例所示:
typedef struct Cart {
int id;
string clientName;
int numberOfProducts;
double purchaseValue;
} Cart;
Run Code Online (Sandbox Code Playgroud)
我定义了一个常量:
#define MAX_CLIENT 10
Run Code Online (Sandbox Code Playgroud)
我将定义队列,该队列最多必须有10个客户端:
deque<Cart> BOX_1(MAX_CLIENT);
deque<Cart> BOX_2(MAX_CLIENT);
deque<Cart> BOX_3(MAX_CLIENT);
Run Code Online (Sandbox Code Playgroud)
但似乎该结构仍然是动态的,甚至定义了最大数量。
感谢您的贡献。