Jonathan
Jonathan
Explore posts from servers
DDeno
Created by Jonathan on 10/16/2024 in #help
Setting up Deno 2.0 with Fresh and TypeORM
😦
4 replies
DDeno
Created by Jonathan on 10/16/2024 in #help
Setting up Deno 2.0 with Fresh and TypeORM
It looks like Deno doesn't work with SQL Azure https://github.com/denoland/deno/issues/20594
4 replies
DDeno
Created by Jonathan on 10/16/2024 in #help
Setting up Deno 2.0 with Fresh and TypeORM
I updated my data.ts to
import { DataSource } from "npm:typeorm";
import { User } from "../entity/user.model.ts";
import * as mssql from "npm:mssql";
import * as reflectMetadata from "npm:reflect-metadata";
const dataSource = new DataSource({
type: "mssql",
url: Deno.env.get("DATABASE_URL"),
entities: [User],
synchronize: false
});

export default dataSource;
import { DataSource } from "npm:typeorm";
import { User } from "../entity/user.model.ts";
import * as mssql from "npm:mssql";
import * as reflectMetadata from "npm:reflect-metadata";
const dataSource = new DataSource({
type: "mssql",
url: Deno.env.get("DATABASE_URL"),
entities: [User],
synchronize: false
});

export default dataSource;
And now I am getting "No metadata for User was found" yet it is specified
4 replies