shultz🇮🇱
shultz🇮🇱
Explore posts from servers
DTDrizzle Team
Created by shultz🇮🇱 on 7/2/2024 in #help
relations.ts alway include column name
Currently drizzle does not include the column name in the introspected relation name in relations.ts if only one column references a certain table [tableName] and not [tableName]_[columnName]. This makes the naming unstable as in the future when another column that relates to the same table is added, the first relation name stops making sense. Can I configure drizzle to alway include the column name in the relation name?
2 replies
DDeno
Created by shultz🇮🇱 on 5/29/2024 in #help
Loading failed for the module with source “node:process” - island not hydrating
No description
5 replies
DDeno
Created by shultz🇮🇱 on 5/29/2024 in #help
preact/compat
Hi deno's AI bot, do you know how to set up preact/compat in a Fresh project?
6 replies
DTDrizzle Team
Created by shultz🇮🇱 on 5/11/2024 in #help
why is relations.ts not generated?
I updated drizzle-kit and run
drizzle-kit introspect:pg --connectionString=$SUPABASE_CONNECTION_STRING --driver=pg --out=src/clients/pg/.drizzle
drizzle-kit introspect:pg --connectionString=$SUPABASE_CONNECTION_STRING --driver=pg --out=src/clients/pg/.drizzle
yet see no relations.ts generated in the out directory. Any ideas?
1 replies
DDeno
Created by shultz🇮🇱 on 5/7/2024 in #help
npm specifier not found in LSP only, and so no types for certain imports
No description
11 replies
DDeno
Created by shultz🇮🇱 on 4/8/2024 in #help
finding unused exports
is there a way that works with deno to find unused exports in my project?
2 replies
DDeno
Created by shultz🇮🇱 on 3/18/2024 in #help
how to load env variables from .env file in task
the source shell command is not available. I tried
"tasks": {
"my-task": "export .env && my-command",
}
"tasks": {
"my-task": "export .env && my-command",
}
is that correct? it's not working now. Where can I see what commands are available in tasks?
4 replies
DDeno
Created by shultz🇮🇱 on 3/3/2024 in #help
deno cache isn't working from vscode
No description
2 replies
DDeno
Created by shultz🇮🇱 on 10/2/2023 in #help
typescript type definition for deno.json
Does it exist, and where can I get it?
4 replies
DDeno
Created by shultz🇮🇱 on 9/20/2023 in #help
Async execution context
Is there any way I can create a global that is unique to an async operation? I would like to use that for logging operation context. Or maybe just a built in way to get some kind ID of the current operation, as in for each task in the event loop getting a different ID, than I can use regular module context with the ID.
4 replies
DDeno
Created by shultz🇮🇱 on 9/6/2023 in #help
lsp bug?
Is there any reason why intellisense would identify the type correctly, but after completion it would be treated as any? is this a bug with deno? Type should be as intellisense shows.
3 replies
DDeno
Created by shultz🇮🇱 on 8/31/2023 in #help
setting module scope variable based on module import path
I have a big utilities file with many helper functions, mostly arround html parsing. Many of which take a locale argument ("en-UK"). The importing module knows the locale, so I would like to set globalThis.defaultLocale via the import path, something like import { util } from '/utilities.ts?locale=en-US'. Is it possible without generating the files per locale or invoking some "setDefualtLocale()" function at every importing module?
1 replies
DDeno
Created by shultz🇮🇱 on 7/29/2023 in #help
typescript compiler (38.24MB) included in bundle when importing google's npm:schema-dts
Not sure if this is a bug, but I couldn't see how the package imports the compiler. create a ts file with: import type { Accommodation } from "npm:schema-dts" deno info [file.ts] file.ts └─┬ npm:[email protected] (857.9KB) └── npm:[email protected] (38.24MB)
7 replies
DDeno
Created by shultz🇮🇱 on 7/29/2023 in #help
debug why a file is imported
I get a compilation error from a ts file that shouldn't be imported. How can I debug the import chain to see all the files that led to this file's import statement?
2 replies
DTDrizzle Team
Created by shultz🇮🇱 on 7/20/2023 in #help
drizzle-kit introspect:pg Invalid input Only "pg" is available options for "--driver"
When attempting to introspect a neon pg db, I get a very cryptic message. npx drizzle-kit introspect:pg --connectionString=postgres://gbd:[email protected]/neondb
drizzle-kit: v0.19.9 drizzle-orm: v0.27.2 Invalid input Only "pg" is available options for "--driver"
5 replies
DDeno
Created by shultz🇮🇱 on 5/1/2023 in #help
deno-deploy limits on file storage?
When deploying static files via deployctl, what are the storage limits / costs per GB? Couldn't find any reference to it.
1 replies
DDeno
Created by shultz🇮🇱 on 1/17/2023 in #help
xstate - no types imported
import * as xstate from "https://deno.land/x/xstate@[email protected]/src/index.ts"; file is cached, yet no types (restarted language server ext.) any ideas?
5 replies