Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@embedded-postgres/windows-x64

leinelissen896MIT17.5.0-beta.15TypeScript support: included

A package containing the Postgres binaries for a particular architecture and operating system. See the embedded-postgres package.

readme

Embedded Postgres

npm npm type definitions npm NPM GitHub Actions Workflow Status

🐘 A Node package that spawns PostgresQL clusters programatically.

This package contains the windows-x64 Postgres binaries for use with the embedded-postgres package. See embedded-postgres for a more developer-friendly way of spawning PostgresQL clusters.

Installation

embedded-postgres is available from NPM:

npm i embedded-postgres

Using just the binaries

If you just want to use the binaries, you can also just use this package directly. It exports the paths to the pg_ctl, initdb and postgres binaries for windows-x64.

npm i @embedded-postgres/windows-x64

Follow the documentation to discover how to interface with the binaries. Any implementation is going to look something like this:

import { pg_ctl, initdb, postgres } from '@embedded-postgres/windows-x64'
import { execSync, spawn } from 'child_process';

execSync(initdb);
spawn(postgres);

[!IMPORTANT]
A more friendly wrapper for using these binaries is provided as the embedded-postgres package. Please use it if you're confused by the binaries.

Credits and Licensing

Embedded Postgres was created by Lei Nelissen for BMD Studio. It is based on zonky's embedded-postgres-binaries. The binaries are made available under the Apache License 2.0, whereas the specific code in this package is made available under the MIT license.

BMD Studio

changelog

1.0.0 (2024-12-04)

17.2.0-beta.15 (2024-12-04)

16.6.0-beta.15 (2024-12-04)

15.10.0-beta.15 (2024-12-04)

14.15.0-beta.15 (2024-12-04)

13.18.0-beta.15 (2024-12-04)

12.22.0-beta.15 (2024-12-04)

Bug Fixes

  • explicitly specify LC_MESSAGES locale initialise completes on non-english systems (2780bd3)
  • run tests with a different locale (d5de85f)

17.2.0-beta.14 (2024-11-25)

16.6.0-beta.14 (2024-11-25)

15.10.0-beta.14 (2024-11-25)

14.15.0-beta.14 (2024-11-25)

13.18.0-beta.14 (2024-11-25)

12.22.0-beta.14 (2024-11-25)

17.1.0-beta.14 (2024-11-25)

16.5.0-beta.14 (2024-11-25)

15.9.0-beta.14 (2024-11-25)

14.14.0-beta.14 (2024-11-25)

13.17.0-beta.14 (2024-11-25)

12.21.0-beta.14 (2024-11-25)

17.0.0-beta.14 (2024-11-13)

16.4.0-beta.14 (2024-11-13)

15.8.0-beta.14 (2024-11-13)

14.13.0-beta.14 (2024-11-13)

13.16.0-beta.14 (2024-11-13)

12.20.0-beta.14 (2024-11-13)

Bug Fixes

  • ensure the packages are built correctly when releasing (5aa8eea)

17.0.0-beta.13 (2024-11-08)

16.4.0-beta.13 (2024-11-08)

15.8.0-beta.13 (2024-11-08)

14.13.0-beta.13 (2024-11-08)

13.16.0-beta.13 (2024-11-08)

12.20.0-beta.13 (2024-11-08)

17.0.0-beta.12 (2024-10-01)

16.4.0-beta.12 (2024-08-12)

15.8.0-beta.12 (2024-08-12)

14.13.0-beta.12 (2024-08-12)

13.16.0-beta.12 (2024-08-12)

12.20.0-beta.12 (2024-08-12)

16.2.0-beta.12 (2024-07-01)

15.6.0-beta.12 (2024-07-01)

14.11.0-beta.12 (2024-07-01)

13.14.0-beta.12 (2024-07-01)

12.18.0-beta.12 (2024-07-01)

Bug Fixes

16.2.0-beta.11 (2024-02-11)

15.6.0-beta.11 (2024-02-11)

14.11.0-beta.11 (2024-02-11)

13.14.0-beta.11 (2024-02-11)

12.18.0-beta.11 (2024-02-11)

16.1.1-beta.11 (2024-02-11)

15.5.1-beta.11 (2024-02-11)

14.10.1-beta.11 (2024-02-11)

13.13.1-beta.11 (2024-02-11)

12.17.1-beta.11 (2024-02-11)

11.22.1-beta.11 (2024-02-11)

Bug Fixes

  • properly pass the --all flag to the downloader script (4d29814)

16.1.1-beta.10 (2024-02-11)

15.5.1-beta.10 (2024-02-11)

14.10.1-beta.10 (2024-02-11)

13.13.1-beta.10 (2024-02-11)

12.17.1-beta.10 (2024-02-11)

11.22.1-beta.10 (2024-02-11)

Bug Fixes

  • add missing semicolon (427388d)
  • allow proper shutdown of postgres process on windows as well (92fb102)
  • catch errors when reading symlinks file so devs can download binaries first (89852c9)
  • don't run pg commands in shells (0987bec)
  • enable binary downloads on win32 (2493d29)
  • only remove native.tar when it exists (a70556e)
  • refactor download scripts to ESM as well (557bff7)
  • replace "with" syntax for "assert" syntax for broader node compatibility (bf98824)
  • run tar in one go on non-windows systems (eac6820)

Features

16.1.1-beta.9 (2023-12-07)

15.5.1-beta.9 (2023-12-07)

14.10.1-beta.9 (2023-12-07)

13.13.1-beta.9 (2023-12-07)

12.17.1-beta.9 (2023-12-07)

11.22.1-beta.9 (2023-12-07)

15.4.0-beta.9 (2023-08-25)

14.9.0-beta.9 (2023-08-25)

13.12.0-beta.9 (2023-08-25)

12.16.0-beta.9 (2023-08-25)

11.21.0-beta.9 (2023-08-25)

15.3.0-beta.9 (2023-07-11)

14.8.0-beta.9 (2023-07-11)

13.11.0-beta.9 (2023-07-11)

12.15.0-beta.9 (2023-07-11)

11.20.0-beta.9 (2023-07-11)

Bug Fixes

  • camelCase instead of snake_case (5bb4243)

Features

  • add option for automatically creating postgres user (f0d859c)
  • allow injecting postgres and initdb flags (09ab2ee)
  • allow specifying error handlers (56f696b)

15.3.0-beta.8 (2023-05-22)

14.8.0-beta.8 (2023-05-22)

13.11.0-beta.8 (2023-05-22)

12.15.0-beta.8 (2023-05-22)

11.20.0-beta.8 (2023-05-22)

Bug Fixes

  • remove directory before unpacking tar (19f21a9), closes #3

15.3.0-beta.7 (2023-05-22)

14.8.0-beta.7 (2023-05-22)

13.11.0-beta.7 (2023-05-22)

12.15.0-beta.7 (2023-05-22)

11.20.0-beta.7 (2023-05-22)

14.7.0-beta.7 (2023-04-13)

13.10.0-beta.7 (2023-04-13)

12.14.0-beta.7 (2023-04-13)

11.19.0-beta.7 (2023-04-13)

Bug Fixes

  • format exports so that tsc will acutally compile them to cjs (8374696)

15.2.0-beta.6 (2023-02-28)

14.7.0-beta.6 (2023-02-28)

13.10.0-beta.6 (2023-02-28)

12.14.0-beta.6 (2023-02-28)

11.19.0-beta.6 (2023-02-28)

15.1.0-beta.6 (2022-11-25)

14.6.0-beta.6 (2022-11-25)

13.9.0-beta.6 (2022-11-25)

12.13.0-beta.6 (2022-11-25)

11.18.0-beta.6 (2022-11-25)

10.23.0-beta.6 (2022-11-25)

Bug Fixes

  • Also don't version and publish packages that are ignored (95dfbaa)
  • Increment supported versions. Also disable releases pre-14 for darwin-arm64 (60773f2)

Features

  • Create scripts for releasing multiple versions (87faf4e)

Reverts

  • Revert "v10.23.0-beta.6" (d101969)

15.0.0-beta.6 (2022-11-01)

14.5.0-beta.6 (2022-11-01)

14.4.0-beta.6 (2022-11-01)

14.3.0-beta.6 (2022-11-01)

13.6.0-beta.6 (2022-11-01)

12.10.0-beta.6 (2022-11-01)

11.15.0-beta.6 (2022-11-01)

10.20.0-beta.6 (2022-11-01)

10.20.0-beta.5 (2022-11-01)

10.20.0-beta.3 (2022-11-01)

10.20.0-beta.2 (2022-11-01)

10.20.0-beta.1 (2022-11-01)

Bug Fixes

  • ignore .txz archives (aded4af)
  • map platforms as well, so that win32 is transformed into windows (c038424)

14.3.0-alpha.21 (2022-07-22)

Bug Fixes

14.3.0-alpha.20 (2022-07-22)

Bug Fixes

  • append .exe to windows binaries (3fe1731)

14.3.0-alpha.19 (2022-07-22)

Bug Fixes

  • adjust package.json os string to win32 rather than windows (4ce8819)

14.3.0-alpha.18 (2022-07-20)

Bug Fixes

  • also chmod postgres binary on init (3a376e8)

14.3.0-alpha.17 (2022-07-20)

Bug Fixes

14.3.0-alpha.16 (2022-07-20)

14.3.0-alpha.15 (2022-07-20)

Bug Fixes

  • change permission to 755 from 744 (520531b)

14.3.0-alpha.14 (2022-07-20)

Features

  • Greedily chmod executables (1ab4735)

14.3.0-alpha.13 (2022-07-20)

Features

  • Also make package available for Windows and Linux (5cfb7f3)

14.3.0-alpha.12 (2022-06-16)

Bug Fixes

  • Make symlinks relative to their containing folder rather than the package root (c5eda7d)
  • Remove last instance of fs.link (c2dae1a)

Features

  • Allow specific version to be specified when downloading postgres (73532c0)

14.3.0-alpha.11 (2022-06-14)

Bug Fixes

  • Replace fs.link with fs.symlink (91b9266)

14.3.0-alpha.10 (2022-06-14)

Bug Fixes

  • Also pack postinstalls script (033619f)

14.3.0-alpha.9 (2022-06-14)

Features

  • Detect and hydrate symlinks from now on (c61844a)

14.3.0-alpha.8 (2022-06-08)

14.3.0-alpha.7 (2022-06-08)

14.3.0-alpha.6 (2022-06-08)

14.3.0-alpha.4 (2022-06-08)

14.3.0-alpha.3 (2022-06-08)

14.3.0-alpha.2 (2022-06-08)

14.3.0-alpha.1 (2022-06-08)

14.3.0 (2022-06-08)