significantotter
significantotter
Explore posts from servers
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
ah! That's helpful
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
hm, maybe I have no choice but to move it to the top level. Would that cause issues for a later drizzle pg database in the same env as the drizzle sqlite database?
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
when I run drizzle kit studio in the /dist directory, my schema is still referenced as './schema.ts' which fails against the compiled code. So it sees db url, but can't find the schema
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
Hmm... I think I see the issue
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
But yeah! Fixed it with a copyfiles tool to get the asset over. Now I'm trying to get drizzle kit studio to work with it. I'm running it in my dist directory. I can open the sqlite file and see the data. But drizzle kit studio shows an empty db
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
I'm currently using objection + pgsql for the main db work here. I just wanted a small embedded read store for this service. I plan to eventually migrate from objection to drizzle for that pg database, so I wanted to leave this one more encapsulated
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
True. I'm just trying to contain it to the service. I had considered that if I don't have other options.
13 replies
DTDrizzle Team
Created by significantotter on 9/14/2023 in #help
Nesting sqlite drizzle into a deeper location in my ts app, difficulties with src/ vs dist/
hm, typescript is annoying about this. They don't like to copy non ts assets. https://github.com/microsoft/TypeScript/issues/30835 But that's very helpful direction, and I'm looking at doing that now
13 replies