Work Notes: Switching from MySQL to SQLite for local production – Unfinished


New Day: Fri Sep 29 2023 23:21:58 GMT-0500 (Central Daylight Saving Time)

there is no way I’m going to try to make another at my escrow server on my phone so I’m just going to be good at switching from sqlite and I’m sure you will be able to tell the difference. Your code will be able to run on user land which is the desirable method. This is a desirable method for writing code with Prisma and next js much better than Termux which is a dated platform.



const CURRENT_DB = process.env.CURRENT_DB;

if (CURRENT_DB) {
    console.log('The value of CURRENT_DB is:', CURRENT_DB);
} else {
    console.error('CURRENT_DB not found in environment variables');
}

Ran with:

bun run DB-swap/index.ts
The value of CURRENT_DB is: MYSQL

Getting Ahead: Your first 2,000 dollars on Upwork

$4.99

Are you a developer dreaming of location independence and a lucrative career? This ebook is your roadmap to success on Upwork, one of the world’s leading freelance platforms. Whether you’re a seasoned coder or just starting out, we’ll guide you through the most effective strategies to reach that crucial $2,000 milestone.

Category:

One response to “Work Notes: Switching from MySQL to SQLite for local production – Unfinished”

  1. I would love to write more code on my phone using UserLAnd and using that app to develop Next.js apps but I’m having issues with getting the correct CRT cert, will try again soon.

Leave a Reply