sanser
sanser
Explore posts from servers
DTDrizzle Team
Created by sanser on 4/4/2024 in #help
Error: SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing
"postgres://postgres.bigtestington:bigidiot@@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres" like this ^
3 replies
DTDrizzle Team
Created by sanser on 4/4/2024 in #help
Error: SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing
edit: i fixed the issue, seems like i had an issue with the speical charcters, i have an @ at the end of my password so i needed two of them 🤦
3 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
like .empty()
5 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
just hoping there would he a nice wrapper around this
5 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
ye this works too
5 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
then if i use import {sql} from '@vercel/postgres' it builds!!!! but then i get ReferenceError: process is not defined error when hitting my endpoints which interact with the database
4 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
my database is neon but i will use move this to AWS once testing is complete
4 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
import { pg as PostgresAdapter } from '@lucia-auth/adapter-postgresql';
import * as schema from '$lib/db/schema';

import { createPool } from '@vercel/postgres';
import { drizzle } from 'drizzle-orm/vercel-postgres';

const sqlClient = createPool({ connectionString: DATABASE_URL });

const db = drizzle(sqlClient, { schema });

export const auth = lucia({
adapter: PostgresAdapter(sqlClient, {
user: 'auth_user',
key: 'user_key',
session: 'user_session'
}),
import { pg as PostgresAdapter } from '@lucia-auth/adapter-postgresql';
import * as schema from '$lib/db/schema';

import { createPool } from '@vercel/postgres';
import { drizzle } from 'drizzle-orm/vercel-postgres';

const sqlClient = createPool({ connectionString: DATABASE_URL });

const db = drizzle(sqlClient, { schema });

export const auth = lucia({
adapter: PostgresAdapter(sqlClient, {
user: 'auth_user',
key: 'user_key',
session: 'user_session'
}),
4 replies