орм отправляет
query: PRAGMA foreign_keys = OFF
query: BEGIN TRANSACTION
query: SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" IN ('')
query: SELECT * FROM "sqlite_master" WHERE "type" = 'index' AND "tbl_name" IN ('')
query: SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" = 'typeorm_metadata'
query: CREATE TABLE "" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password" varchar NOT NULL)
query: COMMIT
query: PRAGMA foreign_keys = ON
query: BEGIN TRANSACTION
query: INSERT INTO ("id", "email", "password") VALUES (NULL, ?, ?) -- PARAMETERS: ["john","password"]
query failed: INSERT INTO ("id", "email", "password") VALUES (NULL, ?, ?) -- PARAMETERS: ["john","password"]
error: Error: SQLITE_ERROR: near "(": syntax error
query: ROLLBACK
sqlite+node+nest+typeorm
async findOne(): Promise<User | null> {
await this.usersRepository.save({
id: 0,
email: 'john',
password: 'password',
});
return await this.usersRepository.findOne({
where: { email: 'john' },
});
}