-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c409b0a
commit ddbd862
Showing
14 changed files
with
97 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { drizzle } from 'drizzle-orm/neon-http'; | ||
import { DrizzlePgCoreStore } from '../pg-core/DrizzlePgCoreStore'; | ||
|
||
export class DrizzlePgStore extends DrizzlePgCoreStore< | ||
// @ts-ignore | ||
typeof drizzle | ||
> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './DrizzlePgStore'; | ||
export * from '../pg-core/DrizzlePgSchema'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { drizzle } from 'drizzle-orm/node-postgres'; | ||
import { DrizzlePgCoreStore } from '../pg-core/DrizzlePgCoreStore'; | ||
|
||
export class DrizzlePgStore extends DrizzlePgCoreStore<typeof drizzle> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './DrizzlePgStore'; | ||
export * from '../pg-core/DrizzlePgSchema'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { | ||
pgTable, | ||
jsonb, | ||
timestamp, | ||
varchar, | ||
bigint, | ||
} from 'drizzle-orm/pg-core'; | ||
|
||
const createdAt = timestamp(`createdAt`, { | ||
withTimezone: true, | ||
}) | ||
.notNull() | ||
.defaultNow(); | ||
|
||
const updatedAt = timestamp(`updatedAt`, { | ||
withTimezone: true, | ||
}) | ||
.notNull() | ||
.defaultNow(); | ||
|
||
export const DrizzlePgNextUploadAssetsTable = pgTable(`next_upload_assets`, { | ||
createdAt, | ||
updatedAt, | ||
id: varchar(`id`).primaryKey(), | ||
data: jsonb(`data`).notNull(), | ||
expires: bigint(`expires`, { | ||
mode: 'number', | ||
}), | ||
presignedUrl: varchar(`presignedUrl`), | ||
presignedUrlExpires: bigint(`presignedUrlExpires`, { | ||
mode: 'number', | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { drizzle } from 'drizzle-orm/postgres-js'; | ||
import { DrizzlePgCoreStore } from '../pg-core/DrizzlePgCoreStore'; | ||
|
||
export class DrizzlePgStore extends DrizzlePgCoreStore<typeof drizzle> {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './DrizzlePostgresStore'; | ||
export * from './DrizzlePostgresSchema'; | ||
export * from './DrizzlePgStore'; | ||
export * from '../pg-core/DrizzlePgSchema'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters