orchid-orm
orchid-orm copied to clipboard
Orchid ORM
i am trying to deploy my backend API with orchid to cloudflare workers, but i am getting some error, because of some library, are there any plans for providing serverless...
In issue https://github.com/romeerez/orchid-orm/issues/244, this works: ``` export const myRepo = createRepo(db.relationTable, { queryMethods: { whereSomething: (xxx: SomeType) => { return q.where(xxx); }, }, }); const data = db.xxx.select({ relationCount: q...
I'm very grateful to all of you who have left inspiring comments, who have starred the project, and who are looking forward to its growth! For me this means a...
`console.log(factory)` prints an object, but `console.log(df.city)` throws an error of `undefined is not an object (evaluating 'string._def')`
### Problem `createMany` creating new m2m relations runs a separate SQL query for each related object. ### Steps to reproduce ```ts class AuthorTable extends BaseTable { readonly table = "author"...
Inspired by [prisma generator](https://www.prisma.io/docs/concepts/components/prisma-schema/generators) feature. I find it very useful for generating json/types/schemas/validators/trpc/etc. The idea is to have a plugin type function that has access to the underlying orm schema/types...
Given a table with a `bigint()` column, I would expect to be able to insert/update native bigints: ```ts // Type 'bigint' is not assignable to type 'CreateColumn'. await db.config.insert({ bigIntColumn:...
```ts const config = await db.config.select().take() ``` The return object is typed as `{}` but in runtime it's the full row: `{ id: 1, title: 'foo', secret: 'will leak' }`....
With `orchidORM({ log: true }, ...)`, SQL statements logged by `orCreate` don't make sense. For example, the two `orCreate` operations below should obviously at least **begin** with the single statement...
Using `.create(...).select(...)` returns an object typed as if it had only select fields (as expected by looking at the query) but in fact it contains all fields. For example: ```ts...