Nas-damha
Nas-damha
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Nas-damha on 5/20/2024 in #questions
noob, how do i type this chart options prop.... 💀💀
I did it...
4 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 5/20/2024 in #questions
Hello, can I pull an already existing postgresql db from supabase to my drizzle schema?
do i need to do db pull?, so far I just put my supabase url to the env and that's it, will my tables work just like that?
4 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
it's default
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
how?
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 3/1/2024 in #questions
Can someone help me with this prisma error
my organization name doesnt work either
18 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 3/1/2024 in #questions
Can someone help me with this prisma error
My username doesnt work
18 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 3/1/2024 in #questions
Can someone help me with this prisma error
whats db-user
18 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 3/1/2024 in #questions
Can someone help me with this prisma error
this one
18 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 3/1/2024 in #questions
Can someone help me with this prisma error
No description
18 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
This one uses postgres
#!/bin/bash
# Use this script to start a docker container for a local development database

# TO RUN ON WINDOWS:
# 1. Install WSL (Windows Subsystem for Linux) - https://learn.microsoft.com/en-us/windows/wsl/install
# 2. Install Docker Desktop for Windows - https://docs.docker.com/docker-for-windows/install/
# 3. Open WSL - `wsl`
# 4. Run this script - `./start-database.sh`

# On Linux and macOS you can run this script directly - `./start-database.sh`

DB_CONTAINER_NAME=".-postgres"

if ! [ -x "$(command -v docker)" ]; then
echo "Docker is not installed. Please install docker and try again.\nDocker install guide: https://docs.docker.com/engine/install/"
exit 1
fi

if [ "$(docker ps -q -f name=$DB_CONTAINER_NAME)" ]; then
docker start $DB_CONTAINER_NAME
echo "Database container started"
exit 0
fi

# import env variables from .env
set -a
source .env

DB_PASSWORD=$(echo $DATABASE_URL | awk -F':' '{print $3}' | awk -F'@' '{print $1}')

if [ "$DB_PASSWORD" = "password" ]; then
echo "You are using the default database password"
read -p "Should we generate a random password for you? [y/N]: " -r REPLY
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Please set a password in the .env file and try again"
exit 1
fi
DB_PASSWORD=$(openssl rand -base64 12)
sed -i -e "s#:password@#:$DB_PASSWORD@#" .env
fi

docker run --name $DB_CONTAINER_NAME -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_DB=. -d -p 5432:5432 docker.io/postgres

echo "Database container was succesfuly created"
#!/bin/bash
# Use this script to start a docker container for a local development database

# TO RUN ON WINDOWS:
# 1. Install WSL (Windows Subsystem for Linux) - https://learn.microsoft.com/en-us/windows/wsl/install
# 2. Install Docker Desktop for Windows - https://docs.docker.com/docker-for-windows/install/
# 3. Open WSL - `wsl`
# 4. Run this script - `./start-database.sh`

# On Linux and macOS you can run this script directly - `./start-database.sh`

DB_CONTAINER_NAME=".-postgres"

if ! [ -x "$(command -v docker)" ]; then
echo "Docker is not installed. Please install docker and try again.\nDocker install guide: https://docs.docker.com/engine/install/"
exit 1
fi

if [ "$(docker ps -q -f name=$DB_CONTAINER_NAME)" ]; then
docker start $DB_CONTAINER_NAME
echo "Database container started"
exit 0
fi

# import env variables from .env
set -a
source .env

DB_PASSWORD=$(echo $DATABASE_URL | awk -F':' '{print $3}' | awk -F'@' '{print $1}')

if [ "$DB_PASSWORD" = "password" ]; then
echo "You are using the default database password"
read -p "Should we generate a random password for you? [y/N]: " -r REPLY
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Please set a password in the .env file and try again"
exit 1
fi
DB_PASSWORD=$(openssl rand -base64 12)
sed -i -e "s#:password@#:$DB_PASSWORD@#" .env
fi

docker run --name $DB_CONTAINER_NAME -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_DB=. -d -p 5432:5432 docker.io/postgres

echo "Database container was succesfuly created"
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
cause .-mysql "arent a valid container name"
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
i only change the container name from .-mysql to mysql
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
its default config, from bun create t3app command
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
I use wsl
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
huh?
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
can someone help?
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 2/26/2024 in #questions
help a noob, Error P1017
I'm using the ./start-database.sh docker mysql setup
23 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 6/17/2023 in #questions
Why only example exist?
now i did and it worked
5 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 6/17/2023 in #questions
Why only example exist?
i wasn't
5 replies
TTCTheo's Typesafe Cult
Created by Nas-damha on 6/16/2023 in #questions
how do I fix this type error
after adding it, and
npx prisma generate
npx prisma generate
, is all working
16 replies