Skip to content

Commit

Permalink
remove neon
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanru committed Nov 2, 2023
1 parent f8bd2ed commit 09d6761
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
prisma: ["true", "false"]
appRouter: ["true", "false"]
drizzle: ["true", "false"]
dbType: ["planetscale", "sqlite", "mysql", "postgresql", "neon"]
dbType: ["planetscale", "sqlite", "mysql", "postgresql"]

name: "Build and Start T3 App ${{ matrix.trpc }}-${{ matrix.tailwind }}-${{ matrix.nextAuth }}-${{ matrix.prisma }}-${{ matrix.drizzle}}-${{ matrix.appRouter }}"
steps:
Expand Down
1 change: 0 additions & 1 deletion cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ export const runCli = async (): Promise<CliResults> => {
{ value: "postgres", label: "PostgreSQL" },
{ value: "sqlite", label: "SQLite" },
{ value: "planetscale", label: "Planetscale Serverless" },
{ value: "neon", label: "Neon Serverless" },
],
initialValue: "mysql",
});
Expand Down
1 change: 0 additions & 1 deletion cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const dependencyVersionMap = {
"@types/pg": "^8.10.7",
"@types/better-sqlite3": "^7.6.6",
"better-sqlite3": "^9.0.0",
"@neondatabase/serverless": "^0.6.0",

// TailwindCSS
tailwindcss: "^3.3.3",
Expand Down
6 changes: 1 addition & 5 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const drizzleInstaller: Installer = ({
if (databaseProvider === "planetscale") devPackages.push("mysql2");
if (databaseProvider === "postgres") devPackages.push("@types/pg");
if (databaseProvider === "sqlite") devPackages.push("@types/better-sqlite3");
if (databaseProvider === "neon") devPackages.push("pg");

addPackageDependency({
projectDir,
Expand All @@ -34,7 +33,6 @@ export const drizzleInstaller: Installer = ({
mysql: "mysql2",
postgres: "pg",
sqlite: "better-sqlite3",
neon: "@neondatabase/serverless",
} as const
)[databaseProvider],
],
Expand Down Expand Up @@ -66,7 +64,6 @@ export const drizzleInstaller: Installer = ({
const dbType = (
{
postgres: "pg",
neon: "pg",
sqlite: "sqlite",
mysql: "mysql",
planetscale: "mysql",
Expand All @@ -77,9 +74,8 @@ export const drizzleInstaller: Installer = ({
configContent = configContent.replace(
"mysql2",
{
postgres: "pg",
neon: "pg",
sqlite: "better-sqlite",
postgres: "pg",
}[databaseProvider]
);
if (databaseProvider === "sqlite")
Expand Down
2 changes: 1 addition & 1 deletion cli/src/installers/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const getEnvContent = (
DATABASE_URL='mysql://YOUR_MYSQL_URL_HERE?ssl={"rejectUnauthorized":true}'`;
} else if (databaseProvider === "mysql") {
content += `DATABASE_URL='mysql://username:password@localhost:3306/db_name?schema=public'`;
} else if (databaseProvider === "postgres" || databaseProvider === "neon") {
} else if (databaseProvider === "postgres") {
content += `DATABASE_URL='postgresql://username:password@localhost:5432/db_name?schema=public'`;
} else if (databaseProvider === "sqlite") {
content += `DATABASE_URL='file:./db.sqlite'`;
Expand Down
1 change: 0 additions & 1 deletion cli/src/installers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const databaseProviders = [
"postgres",
"sqlite",
"planetscale",
"neon",
] as const;
export type DatabaseProvider = (typeof databaseProviders)[number];

Expand Down
1 change: 0 additions & 1 deletion cli/src/installers/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const prismaInstaller: Installer = ({
{
mysql: "mysql",
postgres: "postgresql",
neon: "postgresql",
planetscale: "mysql",
}[databaseProvider]
}"`
Expand Down
12 changes: 0 additions & 12 deletions cli/template/extras/src/server/db/index-drizzle/with-neon.ts

This file was deleted.

0 comments on commit 09d6761

Please sign in to comment.