1girl, best quality
1girl, best quality
Explore posts from servers
DTDrizzle Team
Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
lib/drizzle.ts
import { text, blob, sqliteTable } from "drizzle-orm/sqlite-core";

export const Users = sqliteTable("users", {
id: text("id").notNull().primaryKey(),
username: text("username").notNull().unique(),
key: blob("key").notNull(),
salt: blob("salt").notNull()
});
import { text, blob, sqliteTable } from "drizzle-orm/sqlite-core";

export const Users = sqliteTable("users", {
id: text("id").notNull().primaryKey(),
username: text("username").notNull().unique(),
key: blob("key").notNull(),
salt: blob("salt").notNull()
});
drizzle.config.ts
import type { Config } from "drizzle-kit";

export default {
schema: "./lib/drizzle.ts",
out: "./drizzle",
} satisfies Config;
import type { Config } from "drizzle-kit";

export default {
schema: "./lib/drizzle.ts",
out: "./drizzle",
} satisfies Config;
$ drizzle-kit generate:sqlite
drizzle-kit: v0.20.14
drizzle-orm: v0.30.6

No config path provided, using default 'drizzle.config.ts'
Reading config file '/path to my project/drizzle.config.ts'
0 tables


No schema changes, nothing to migrate 😴
drizzle-kit: v0.20.14
drizzle-orm: v0.30.6

No config path provided, using default 'drizzle.config.ts'
Reading config file '/path to my project/drizzle.config.ts'
0 tables


No schema changes, nothing to migrate 😴
I wonder what I am missing?
13 replies
DDeno
Created by 1girl, best quality on 3/11/2024 in #help
Is there an easy way to read tls certificate and key from a filesystem?
I do the following:
if (Deno.env.has("TLS_CERT_PATH") && Deno.env.has("TLS_PKEY_PATH")) {
const tlsCert = Deno.readFileSync(Deno.env.get("TLS_CERT_PATH"));
const tlsPkey = Deno.readFileSync(Deno.env.get("TLS_PKEY_PATH"));
serverOptions = { cert: tlsCert, key: tlsPkey };
}
if (Deno.env.has("TLS_CERT_PATH") && Deno.env.has("TLS_PKEY_PATH")) {
const tlsCert = Deno.readFileSync(Deno.env.get("TLS_CERT_PATH"));
const tlsPkey = Deno.readFileSync(Deno.env.get("TLS_PKEY_PATH"));
serverOptions = { cert: tlsCert, key: tlsPkey };
}
and it doesn't work because apparently it wants a string, not a uint8array. I don't know what's a good way to get a string from a uint8array or to read a string from fs.
2 replies
CDCloudflare Developers
Created by 1girl, best quality on 3/9/2024 in #pages-help
Cannot setup a custom domain
No description
5 replies