Skip to content

Commit

Permalink
Merge pull request #1694 from EnterpriseDB/release/2021-08-10
Browse files Browse the repository at this point in the history
Release/2021 08 10

Former-commit-id: a29075d
  • Loading branch information
jericson-edb authored Aug 10, 2021
2 parents e94795e + 9cfeb14 commit 0d62ccc
Show file tree
Hide file tree
Showing 40 changed files with 3,149 additions and 330 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/deploy-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ jobs:
steps:
- name: Cleanup disk
uses: curoky/[email protected]
with:
retain: "python,node"

- uses: actions/checkout@v2
with:
ref: develop
fetch-depth: 0 # fetch whole repo so git-restore-mtime can work
- name: Adjust file watchers limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Install yarn
Expand All @@ -28,6 +27,20 @@ jobs:
env:
NODE_ENV: ${{ secrets.NODE_ENV }}

- uses: actions/setup-python@v2
with:
python-version: "3.x"
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: "2.14.1"
- name: Install wkhtmltopdf
run: |
curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb > wkhtmltopdf.deb
sudo apt-get install ./wkhtmltopdf.deb
- name: Build all pdfs
run: npm run build-all-pdfs-ci

- name: Checking Gatsby cache
id: gatsby-cache-build
uses: actions/cache@v2
Expand Down
88 changes: 88 additions & 0 deletions .github/workflows/deploy-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Deploy branch draft on Netlify
on:
pull_request:
types: [labeled, opened, synchronize]

concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-deploy:
if: |
(github.event.action == 'labeled' && github.event.label.name == 'deploy') ||
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'deploy'))
runs-on: ubuntu-latest
steps:
- name: inject slug/short variables
uses: rlespinasse/[email protected]

- name: compose a name for the build environment
run: echo "BUILD_ENV_NAME=pr-${{ github.event.number }}-${{ env.GITHUB_HEAD_REF_SLUG }}" >> $GITHUB_ENV

- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 # fetch whole repo so git-restore-mtime can work

- name: Adjust file watchers limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v1
with:
node-version: '14.x'

# ref: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Checking Yarn cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Yarn install
run: npx yarn install --immutable
env:
NODE_ENV: ${{ secrets.NODE_ENV }}

- name: Checking Gatsby cache
id: gatsby-cache-build
uses: actions/cache@v2
with:
path: |
public
.cache
key: ${{ runner.os }}-gatsby-build-draft-${{ github.head_ref }}

- name: Fix mtimes
run: yarn fix-mtimes --force

- name: Gatsby build
run: yarn build
env:
APP_ENV: staging
NODE_ENV: ${{ secrets.NODE_ENV }}
NODE_OPTIONS: --max-old-space-size=4096
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: edb-docs-staging
INDEX_ON_BUILD: false

- name: Deploy to Netlify
id: netlify-deploy
uses: nwtgck/[email protected]
with:
publish-dir: './public'
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.pull_request.title }}
enable-commit-comment: false
github-deployment-environment: ${{ env.BUILD_ENV_NAME }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEVELOP_SITE_ID }}

20 changes: 17 additions & 3 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ jobs:
steps:
- name: Cleanup disk
uses: curoky/[email protected]
with:
retain: "python,node"

- uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0 # fetch whole repo so git-restore-mtime can work
- name: Adjust file watchers limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Install yarn
Expand All @@ -28,6 +27,21 @@ jobs:
env:
NODE_ENV: ${{ secrets.NODE_ENV }}

- uses: actions/setup-python@v2
with:
python-version: "3.x"
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: "2.14.1"
- name: Install wkhtmltopdf
run: |
curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb > wkhtmltopdf.deb
sudo apt-get install ./wkhtmltopdf.deb
- name: Build all pdfs
run: npm run build-all-pdfs-ci


- name: Checking Gatsby cache
id: gatsby-cache-build
uses: actions/cache@v2
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/update-pdfs-on-develop.yml

This file was deleted.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

This repo contains the React/Gatsby application that powers [the EDB Docs website](https://www.enterprisedb.com/docs/). The site pulls [Markdown](https://www.markdownguide.org/) content from several repos in a process called "sourcing", and then renders it all into high-performance markup. You can install the application on your local computer for easy editing, viewing, and eventually publishing to the GitHub repo.

## Please remove and re-clone your local repositories after August 13, 2021

We've been checking PDF files into Git. That's not a good plan, so [we've stopped doing that](https://github.com/EnterpriseDB/docs/issues/1632). The next step is to remove these files from Git history and [move other large files to LFS](https://docs.github.com/en/github/managing-large-files/versioning-large-files/moving-a-file-in-your-repository-to-git-large-file-storage). Among many other good things, that ought to reduce the time to clone this repository substantially.

But it comes at a cost. If there are any local repositories that were cloned before the change, we risk introducing dirty history back into the repository. So we're asking that everyone who has a local repository they **cloned before (or on) August 13, 2021** to delete those repositories. Unfortunately, we'll need to reject any pull requests that introduce PDF files back into Git history. (If you need any help with this, please contact [email protected].)

## MacOS Installation

We recommend using MacOS to work with the EDB Docs application.
Expand Down Expand Up @@ -279,3 +285,4 @@ Option 2: on GitHub

1. Edit a file on GitHub.
2. Submit changes as a PR on a new branch.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
"remark-stringify": "^8.1.1",
"semver-compare": "^1.0.0",
"to-vfile": "^6.1.0",
"typescript": "^4.1.3"
"typescript": "^4.1.3",
"yarn": "^1.22.10"
},
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ The following features have been added to xDB Replication Server version 6.1 to
- The xDB Replication Server CLI `registerkey` command.
> - Partitioned tables created using the declarative partitioning feature of PostgreSQL and Advanced Server version 10 and later can now be replicated in a log-based single-master or multi-master replication system. For more information, see [Replicating Postgres Partitioned Tables](../07_common_operations/10_replicating_postgres_partitioned_tables/#replicating_postgres_partitioned_tables).
> - In a single-master replication system, removal of a table from a publication that has one or more existing subscriptions is now permitted as long as the table to be removed is not the parent referenced in a foreign key constraint from a child table that is not being removed as well. Previously, no tables from a publication in a single-master replication system could be removed if there are existing subscriptions. For more information, see [Removing Tables from a Publication](../07_common_operations/06_managing_publication/03_updating_pub/#remove_tables_from_pub).
> - Versions 11 and 12 of PostgreSQL and Advanced Server are now supported.
14 changes: 14 additions & 0 deletions product_docs/docs/net_connector/5.0.7.1/01_whats_new.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "What’s New"

legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/edb-postgres-net-connector/user-guides/net-guide/4.1.6.1/whats_new.html"
---

<div id="whats_new" class="registered_link"></div>

The following features are added to create EDB .NET Connector 5.0.7.1:

- Merged with the upstream Npgsql driver version 5.0.7. For more information about the merge updates, visit <https://www.nuget.org/packages/Npgsql/5.0.7>.
- Support for .NET 5.0 and .NET Core 3.1 (earlier available as .NET Core 3.0).
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "Requirements Overview"
---

<div id="requirements_overview" class="registered_link"></div>

The following section details the supported platforms for the EDB .NET Connector.

## Supported Server Versions and Platforms

The EDB .NET Connector is certified with Advanced Server version 9.6 and above.

The EDB .NET Connector graphical installers are supported on the following Windows platforms:

64-bit Windows:

- Windows Server 2019
- Windows Server 2016
- Windows Server 2012 R2
- Windows 10
- Windows 8.1

32-bit Windows:

- Windows 10
- Windows 8.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: "The EDB .NET Connector - Overview"

---

<div id="the_advanced_server_net_connector_overview" class="registered_link"></div>

The EDB .NET Connector is a .NET data provider that allows a client application to connect to a database stored on an Advanced Server host. The .NET Connector accesses the data directly, allowing the client application optimal performance, a broad spectrum of functionality, and access to Advanced Server features.

The .NET Connector supports following frameworks:

- .NET 5.0
- .NET Core 3.1
- .NET Standard 2.0 and 2.1


## The .NET Class Hierarchy

The .NET Class Hierarchy contains a number of classes that you can use to create objects that control a connection to the Advanced Server database and manipulate the data stored on the server. The following are just a few of the most commonly used object classes:

`EDBConnection`

The `EDBConnection` class represents a connection to Advanced Server. An `EDBConnection` object contains a `ConnectionString` that instructs the .NET client how to connect to an Advanced Server database.

`EDBCommand`

An `EDBCommand` object contains an SQL command that the client will execute against Advanced Server. Before you can execute an `EDBCommand` object, you must link it to an `EDBConnection` object.

`EDBDataReader`

An `EDBDataReader` object provides a way to read an Advanced Server result set. You can use an `EDBDataReader` object to step through one row at a time, forward-only.

`EDBDataAdapter`

An `EDBDataAdapter` object links a result set to the Advanced Server database. You can modify values and use the `EDBDataAdapter` class to update the data stored in an Advanced Server database.
Loading

0 comments on commit 0d62ccc

Please sign in to comment.