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


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