open-index/open-npm huggingface dataset:
npm package: @neondatabase/migrate-pg
Description: A CLI tool to migrate between PostgreSQL databases
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Migrate between Postgres databases

A CLI tool to **migrate between PostgreSQL databases**.

> [!NOTE]  
> **This project is in the Experimental Stage.**
> 
> This project is in an experimental phase to set clear expectations for your usage. There could be known or unknown bugs, the API could evolve. While we cannot provide professional support for experimental projects, we’d be happy to hear from you if you see value in this project!

## Usage

```sh
npx @neondatabase/migrate-pg --silent false --accept-all false --source="pg-string" --destination="pg-string"
```

### Flags and Options

- `--source <source>`: The connection string for the source PostgreSQL database. This is a required option.
  - Example: `--source "postgres://user:password@localhost:5432/source_db"`

- `--destination <destination>`: The connection string for the destination PostgreSQL database. This is a required option.
  - Example: `--destination "postgres://user:password@localhost:5432/destination_db"`

- `--silent`: Suppresses console output if set to `true`. The default value is `false`.
  - Example: `--silent true`

- `--accept-all`: Automatically accepts all prompts if set to `true`. The default value is `false`.
  - Example: `--accept-all true`

## When Migrating to Neon

- Make sure to enable [autoscaling](https://neon.tech/docs/introduction/autoscaling) and increase your maximum Compute Unit size during the migration process so that the destination instance has enough CPU and RAM to support the migration.
- The following things can result in error during a migration process:
  - `ALTER OWNER` commands
  - `CREATE EVENT TRIGGER` commands
  - Anything that requires superuser that's not included in `neon_superuser` role

## Authors

This library is created by [Neon](https://neon.tech) with contributions from:

- Rishi Raj Jain ([@rishi_raj_jain_](https://twitter.com/rishi_raj_jain_))

## Contributing

We love our contributors! Here's how you can contribute:

- [Open an issue](https://github.com/neondatabase/migrate-pg/issues) if you believe you've encountered a bug.
- Make a [pull request](https://github.com/neondatabase/migrate-pg/pull) to add new features/make quality-of-life improvements/fix bugs.

## Contributors

<a href="https://github.com/neondatabase/migrate-pg/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=neondatabase/migrate-pg&purge=1" />
</a>
npm package: @neondatabase/pg-import
Description: A CLI tool for migrating data from one PostgreSQL database to another.
Latest version: 1.6.0

# Migrate between Postgres databases

A CLI tool for **migrating data from one PostgreSQL database to another**.

> [!NOTE]  
> **This project is experimental.**
> 
> There may be bugs, and the API is subject to change. While we cannot provide professional support for experimental projects, we welcome your feedback.

## Usage

```sh
npx @neondatabase/pg-import@latest --silent false --accept-all false --source="pg-string" --destination="pg-string"
```

### Flags and Options

- `--source <source>`: The connection string for the source PostgreSQL database. This is **optional**.
  - Example: `--source "postgres://user:password@localhost:5432/source_db"`

- `--destination <destination>`: The connection string for the destination PostgreSQL database. This is **optional**.
  - Example: `--destination "postgres://user:password@localhost:5432/destination_db"`

- `--silent`: Suppresses console output if set to `true`. The default value is `false`.
  - Example: `--silent true`

- `--accept-all`: Automatically accepts all prompts if set to `true`. The default value is `false`.
  - Example: `--accept-all true`

- `--backup-file-path`: Specifies the path and filename for the backup file. If not set, the default value is **dump_restore_{randomly_generated_string}.bak**.
  - Example: `--backup-file-path "../Downloads/example.bak"`

## When Migrating to Neon

- Make sure your Neon plan supports your database size. The Neon Free Tier offers 0.5 GiB of storage. For larger data sizes, upgrade to the Launch or Scale plan. See [Neon plans](https://neon.tech/docs/introduction/plans).
- If you are on the Neon Launch or Scale plan, you can optimize for the migration by configuring a larger compute size or enabling [autoscaling](https://neon.tech/docs/introduction/autoscaling) for additional CPU and RAM. See [How to size your compute](https://neon.tech/docs/manage/endpoints#how-to-size-your-compute).
- This utility uses `pg_dump` and `pg_restore`. A generated dump file containing any of the following statements will produce a warning or error when data is restored to Neon:
  - `ALTER OWNER` statements
  - `CREATE EVENT TRIGGER` statements
  - Any statement requiring the PostgreSQL superuser privilege or not held by the role running the migration

  See [Import from Postgres](https://neon.tech/docs/import/import-from-postgres) for possible workarounds.

## Authors

This library is created by [Neon](https://neon.tech) with contributions from:

- Rishi Raj Jain ([@rishi_raj_jain_](https://twitter.com/rishi_raj_jain_))

## Contributing

We love contributions! Here's how you can contribute:

- [Open an issue](https://github.com/neondatabase/pg-import/issues) if you believe you've encountered a bug.
- Make a [pull request](https://github.com/neondatabase/pg-import/pull) to add new features, make improvements, or fix bugs.

## Contributors

<a href="https://github.com/neondatabase/pg-import/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=neondatabase/pg-import&purge=1" />
</a>
npm package: @neondatabase/vite-plugin-postgres
Description: [DEPRECATED] This package has been renamed to 'vite-plugin-neon-new'. Please use 'vite-plugin-neon-new' instead.
Latest version: 0.8.0
Deprecated: This package has been renamed to 'vite-plugin-neon-new'. Please update your dependencies.

# ⚠️ DEPRECATED: @neondatabase/vite-plugin-postgres

**This package has been renamed to [`vite-plugin-db`](https://www.npmjs.com/package/vite-plugin-db).**

## Migration Guide

Please update your dependencies to use the new package name:

### Installation

**Before:**

```bash
npm install @neondatabase/vite-plugin-postgres
# or
pnpm add @neondatabase/vite-plugin-postgres
```

**After:**

```bash
npm install vite-plugin-db
# or
pnpm add vite-plugin-db
```

### Usage in vite.config.ts

**Before:**

```typescript
import { postgres } from "@neondatabase/vite-plugin-postgres";

export default defineConfig({
	plugins: [postgres()],
});
```

**After:**

```typescript
import { postgres } from "vite-plugin-db";

export default defineConfig({
	plugins: [postgres()],
});
```

## Why the Rename?

The package was renamed to `vite-plugin-db` to align with the CLI package rename from `neondb` to `get-db`, providing a more consistent and intuitive naming scheme.

## Support

For issues, questions, or contributions, please visit the [repository](https://github.com/neondatabase/neon-pkgs).