bombillazo
bombillazo
Explore posts from servers
KKysely
Created by bombillazo on 9/26/2024 in #help
Kysely client usage and pooling question
Thanks for clarifying this. How does the "connection" method work?
7 replies
KKysely
Created by bombillazo on 9/26/2024 in #help
Kysely client usage and pooling question
The more I test out different setups, the more I am arriving to the conclusion that the only way to prevent this is using transactions? Is there no way with kysely to ensure the same connection is utilized byt the client for the same request? Another part to note is that we are using Supabase, which also has its own Pooler called Supavisor, Im not sure if that also plays into this behavior.
7 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
Reset position of terminal cursor when calling io.writeAllSync()
I solved this, the command stdin was not piped, only stderr and stdout and seems like it was messing up the terminal cursor location
2 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
Or better yet how can I move the terminal cursor to the start after each new line?
6 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
A bit unrelated but is tehre any way to use the io Write funciton to write to teh start of the terminal line?
6 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
thanks, I did somehitn similar now, with a loop that just reads from the stdout reader.
6 replies
HHono
Created by bombillazo on 8/11/2024 in #help
Return early from middleware
So the error I had was unrelated to the return, returning normally early with the response object works!
3 replies
HHono
Created by bombillazo on 8/8/2024 in #help
Match both `/` and `/:id` routes the the same router
that did it! THank you so much!
6 replies
HHono
Created by bombillazo on 8/8/2024 in #help
Match both `/` and `/:id` routes the the same router
Didn't know about that! Let me try, any more documentation on the url syntax? Is this regex based?
6 replies
KKysely
Created by bombillazo on 5/17/2024 in #help
Dynamic conditional raw query question
Skip the questions of why im using a string query vs the query builder, this is a once off raw query to tables I don't have the schema for. 😆
6 replies
DDeno
Created by bombillazo on 4/11/2024 in #help
How to upgrade `import_map.json` package versions?
Perhaps something similar to this: https://github.com/hayd/deno-udd but actulally maintained and working for impot_map files.
4 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
now its fixed, thanks 😄
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
No description
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
🙂
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
aaaaaaaah
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
updated*
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
declare const TimestampTZ: unique symbol;

export type TimestampTZ = string & { _opaque: typeof TimestampTZ };

export type DBTimestampTZ = ColumnType<TimestampTZ, TimestampTZ, TimestampTZ>;

export interface BookTable {
created_at: Generated<DBTimestampTZ>;
description: string | null;
id: Generated<string>;
is_enabled: Generated<boolean>;
label: string;
name: string;
}

export interface UserTable {
created_at: Generated<DBTimestampTZ>;
description: string | null;
id: Generated<string>;
name: string;
interests: string[]
email: string;
level: number;
birthdate: string;
score: number;
}

export interface KyselyDB {
user:UserTable,
book: BookTable,
}
declare const TimestampTZ: unique symbol;

export type TimestampTZ = string & { _opaque: typeof TimestampTZ };

export type DBTimestampTZ = ColumnType<TimestampTZ, TimestampTZ, TimestampTZ>;

export interface BookTable {
created_at: Generated<DBTimestampTZ>;
description: string | null;
id: Generated<string>;
is_enabled: Generated<boolean>;
label: string;
name: string;
}

export interface UserTable {
created_at: Generated<DBTimestampTZ>;
description: string | null;
id: Generated<string>;
name: string;
interests: string[]
email: string;
level: number;
birthdate: string;
score: number;
}

export interface KyselyDB {
user:UserTable,
book: BookTable,
}
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
sure, one sec
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
its strange that there is no TS problem on 0.27.2 but there is for 0.27.3, using the same TS version
25 replies
KKysely
Created by bombillazo on 4/11/2024 in #help
jsonArrayFrom with `as` not being typed
what chagnes occurred for .3? I dont see them in the release notes. Im using TS 5.4.4
25 replies