Kannan Goundan

Results 30 issues of Kannan Goundan

I was surprised when I saw the extra string conversion in the benchmark code. I think it may surprise others as well. Though people who care about performance will probably...

I have a server with a "/hang" endpoint. Requests will hang until the test calls the "release()" function to complete the request. My test initiates two requests to "/hang", then...

**Describe the bug** I'm calling `parse` with `{raw: true}` to get the original line. When lines end in just "\n", things work fine. When lines end in "\r\n", the raw...

### What rule do you want to change? prefer-const ### What change to do you want to make? Generate more warnings ### How do you think the change should be...

enhancement
rule

There was a bunch of activity on Mammoth 2.x several months ago but there hasn't been any activity recently. Wondering if there's anything we can do to help. - Are...

Two expressions with slightly different nesting. ```ts await db .select(db.test.a) .from(db.test) .where(db.test.a.and(db.test.b).eq(true)); await db .select(db.test.a) .from(db.test) .where(db.test.a.and(db.test.b.eq(true))); ``` But Mammoth produces the same SQL for both: ```sql SELECT test.a FROM...

bug

There are a few cases where we want to add annotations to our DB schema for another tool to read. For example, we want to select a subset of columns...

enhancement

I sometimes have to use `Token` to build expressions that Mammoth doesn't currently support. I noticed that `Array` is assignable to `Token`: ```ts import {Token} from '@ff00ff/mammoth/.build/tokens'; const ts =...

bug

Most of the times I want to use `raw`, I plug in a Mammoth `Expression`, e.g. ```ts raw`ST_Intersects(ST_GeogFromText(POINT(${latitude} ${longitude})), db.regions.shape)`; ``` (`latitude` and `longitude` are JS `number` values.) Is there...

enhancement

Postgres recommends using `IDENTITY` (introduced in v10) instead of `SERIAL`: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial How should I declare such a column in my Mammoth table schema? This is what I'm doing now: ```ts...

bug