@payloadcms/db-postgres
Advanced tools
Comparing version 3.0.0-alpha.52 to 3.0.0-alpha.53
import type { Payload } from 'payload' | ||
import type { DatabaseAdapterObj } from 'payload/database' | ||
export type { MigrateDownArgs, MigrateUpArgs } from './types.js' | ||
@@ -41,3 +42,3 @@ import fs from 'fs' | ||
export type { MigrateDownArgs, MigrateUpArgs } from './types.js' | ||
export { sql } from 'drizzle-orm' | ||
@@ -44,0 +45,0 @@ export function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter> { |
@@ -5,4 +5,3 @@ /* eslint-disable no-restricted-syntax, no-await-in-loop */ import fs from 'fs'; | ||
const require = createRequire(import.meta.url); | ||
const migrationTemplate = (upSQL, downSQL)=>`import { MigrateUpArgs, MigrateDownArgs } from '@payloadcms/db-postgres' | ||
import { sql } from 'drizzle-orm' | ||
const migrationTemplate = (upSQL, downSQL)=>`import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' | ||
@@ -9,0 +8,0 @@ export async function up({ payload }: MigrateUpArgs): Promise<void> { |
import type { DatabaseAdapterObj } from 'payload/database'; | ||
export type { MigrateDownArgs, MigrateUpArgs } from './types.js'; | ||
import type { Args, PostgresAdapter } from './types.js'; | ||
export type { MigrateDownArgs, MigrateUpArgs } from './types.js'; | ||
export { sql } from 'drizzle-orm'; | ||
export declare function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -34,2 +34,3 @@ import fs from 'fs'; | ||
import { updateVersion } from './updateVersion.js'; | ||
export { sql } from 'drizzle-orm'; | ||
export function postgresAdapter(args) { | ||
@@ -36,0 +37,0 @@ function adapter({ payload }) { |
{ | ||
"name": "@payloadcms/db-postgres", | ||
"version": "3.0.0-alpha.52", | ||
"version": "3.0.0-alpha.53", | ||
"description": "The officially supported Postgres database adapter for Payload", | ||
@@ -33,7 +33,7 @@ "repository": { | ||
"@types/to-snake-case": "1.0.0", | ||
"payload": "3.0.0-alpha.52", | ||
"@payloadcms/eslint-config": "1.1.1" | ||
"@payloadcms/eslint-config": "1.1.1", | ||
"payload": "3.0.0-alpha.53" | ||
}, | ||
"peerDependencies": { | ||
"payload": "3.0.0-alpha.52" | ||
"payload": "3.0.0-alpha.53" | ||
}, | ||
@@ -40,0 +40,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
669956
6220