firxworx
firxworx
KPCKevin Powell - Community
Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
@Matt quagga is a browser library per its readme so your issue makes sense. Your error gives it away: any time you see a mention of document not existing you are definitely trying to run something written for browser (where there's a document global e.g. document.querySelector("#heroSection")) in a server-side environment (like NodeJS) where no such thing exists. Hence the error: code is trying to reference it and its not defined.
29 replies
KPCKevin Powell - Community
Created by DoContra on 3/10/2024 in #back-end
host website
If you need a quick cheap way to host LAMP for dev/testing that's easy you could go with a cheap shared host that allows ssh. Check forums like webhostingtalk for companies with good rep and steep discount codes. IMHO its nice to keep a "reseller" account handy so you can make isolated sub-accounts for experiments, side projects, friends, etc. with everything pre-configured, email, database, etc. I say this as a dev with plenty of IaC and aws experience. For Canada or NE USA I would recommend Crocweb (you need to send a ticket to enable ssh but they respond very quick). Honestly they have proven more reliable and faster on support than big-ticket "enterprise" tech firms that serve large companies.
3 replies
DTDrizzle Team
Created by firxworx on 8/26/2023 in #help
Are postgres CONSTRAINTS supported when creating a table schema?
Funnily enough if I start on the not-desired type
export const user = pgTable(
'user',
{
id: integer('id').primaryKey(),
export const user = pgTable(
'user',
{
id: integer('id').primaryKey(),
and generate migrations, and then go back, revise to the following and generate using a custom type:
export const user = pgTable(
'user',
{
id: customIdentity('id').primaryKey(),
export const user = pgTable(
'user',
{
id: customIdentity('id').primaryKey(),
then a migration will be generated that does not wrap the returned value of the custom type in quotation marks:
ALTER TABLE "user" ALTER COLUMN "id" SET DATA TYPE int GENERATED BY DEFAULT AS IDENTITY;
ALTER TABLE "user" ALTER COLUMN "id" SET DATA TYPE int GENERATED BY DEFAULT AS IDENTITY;
meanwhile if I defined my schema with id using the custom type out of the gate it gets generated with quotation marks:
CREATE TABLE IF NOT EXISTS "user" (
"id" "int GENERATED BY DEFAULT AS IDENTITY",
CREATE TABLE IF NOT EXISTS "user" (
"id" "int GENERATED BY DEFAULT AS IDENTITY",
2 replies
DTDrizzle Team
Created by Sean Cassiere on 8/23/2023 in #help
Type errors with 0.28.3
This breaks following the quick start. I just tried Drizzle for the first time and was surprised to see the error. What's the issue # for this I couldn't find it (or does everyone prefer Discord)? Maybe a pre-release smoke check script could be starting a new project with a fresh package.json, adding the packages and base user table (i.e. the quick start), and then ensuring the result can build?
7 replies