Skip to content

Commit

Permalink
feat: extensions (#30)
Browse files Browse the repository at this point in the history
* chore: rename folder

* chore: rename folder

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* wip: extensions

* chore: remove node current since its unstable

* chore: add changesets

* chore: badges
  • Loading branch information
Bas950 committed May 24, 2023
1 parent d401fc1 commit e346b2c
Show file tree
Hide file tree
Showing 213 changed files with 7,171 additions and 2,365 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-eggs-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@postgresql-typed/tzswitcher": minor
---

Add a new timezone switcher extension
6 changes: 6 additions & 0 deletions .changeset/ninety-moose-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@postgresql-typed/postgres": minor
"@postgresql-typed/pg": minor
---

Add hooks
6 changes: 6 additions & 0 deletions .changeset/odd-cows-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@postgresql-typed/core": minor
"@postgresql-typed/util": minor
---

Add the ability to have extensions and hooks
7 changes: 7 additions & 0 deletions .changeset/pretty-experts-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@postgresql-typed/parsers": minor
"@postgresql-typed/core": minor
"@postgresql-typed/util": minor
---

Rename PGT... to PgT...
5 changes: 5 additions & 0 deletions .changeset/strong-carpets-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@postgresql-typed/cache": minor
---

Add a new caching extension
14 changes: 14 additions & 0 deletions .changeset/tough-suits-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@postgresql-typed/tzswitcher": patch
"@postgresql-typed/postgres": patch
"@postgresql-typed/parsers": patch
"@postgresql-typed/cache": patch
"@postgresql-typed/core": patch
"@postgresql-typed/oids": patch
"@postgresql-typed/util": patch
"@postgresql-typed/cli": patch
"@postgresql-typed/pg": patch
"@postgresql-typed/ui": patch
---

Change documention so it's all the same syntax
44 changes: 28 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Ecosystem
on: [push, pull_request]
jobs:
"Cache":
name: '@PostgreSQL-Typed/Cache'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/cache'
secrets: inherit
"CLI":
name: '@PostgreSQL-Typed/CLI'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/cli'
secrets: inherit
"Core":
name: '@PostgreSQL-Typed/Core'
uses: ./.github/workflows/package.yml
Expand All @@ -19,39 +31,39 @@ jobs:
with:
package: '@postgresql-typed/parsers'
secrets: inherit
"CLI":
name: '@PostgreSQL-Typed/CLI'
"pg":
name: '@PostgreSQL-Typed/pg'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/cli'
package: '@postgresql-typed/pg'
secrets: inherit
"UI":
name: '@PostgreSQL-Typed/UI'
"postgres":
name: '@PostgreSQL-Typed/postgres'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/ui'
package: '@postgresql-typed/postgres'
secrets: inherit
"Util":
name: '@PostgreSQL-Typed/Util'
"TzSwitcher":
name: '@PostgreSQL-Typed/TzSwitcher'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/util'
package: '@postgresql-typed/tzswitcher'
secrets: inherit
"pg":
name: '@PostgreSQL-Typed/pg'
"UI":
name: '@PostgreSQL-Typed/UI'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/pg'
package: '@postgresql-typed/ui'
secrets: inherit
"postgres":
name: '@PostgreSQL-Typed/postgres'
"Util":
name: '@PostgreSQL-Typed/Util'
uses: ./.github/workflows/package.yml
with:
package: '@postgresql-typed/postgres'
package: '@postgresql-typed/util'
secrets: inherit
coverage:
name: Coverage
needs: [Core, OIDs, Parsers, CLI, UI, Util, pg, postgres]
needs: [Cache, CLI, Core, OIDs, Parsers, pg, postgres, TzSwitcher, UI, Util]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["16", "lts/*", "current"]
node: ["16", "lts/*"]
postgres: ["11", "12", "13", "14", "latest"]
services:
postgres:
Expand Down
80 changes: 58 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,46 +30,46 @@
It currently contains the following packages:
</p>

<!-- @PostgreSQL-Typed/postgres -->
<!-- @PostgreSQL-Typed/Cache -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/postgres">
@PostgreSQL-Typed/postgres
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/PostgreSQL-Typed">
@PostgreSQL-Typed/Cache
</a>
</h2>
<div align="center">
<!-- badges -->
<a href="https://www.npmjs.com/package/@postgresql-typed/postgres">
<img src="https://img.shields.io/npm/v/@postgresql-typed/postgres.svg?logo=npm" alt="@PostgreSQL-Typed/postgres Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/postgres&logo=vitest&style=flat" alt="@PostgreSQL-Typed/postgres Coverage"/>
<a href="https://www.npmjs.com/package/@postgresql-typed/cache">
<img src="https://img.shields.io/npm/v/@postgresql-typed/cache.svg?logo=npm" alt="@PostgreSQL-Typed/Cache Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/cache&logo=vitest&style=flat" alt="@PostgreSQL-Typed/Cache Coverage"/>
</a>
</div>
<p align="center">
A type-safe PostgreSQL client for Node.js (Using the postgres module)
A <a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed">PostgreSQL-Typed</a> extension to cache queries using <a href="https://www.npmjs.com/package/keyv">Keyv</a>
<p>

<br/>
<!-- @PostgreSQL-Typed/pg -->
<!-- @PostgreSQL-Typed/CLI -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/pg">
@PostgreSQL-Typed/pg
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/cli">
@PostgreSQL-Typed/CLI
</a>
</h2>
<div align="center">
<!-- badges -->
<a href="https://www.npmjs.com/package/@postgresql-typed/pg">
<img src="https://img.shields.io/npm/v/@postgresql-typed/pg.svg?logo=npm" alt="@PostgreSQL-Typed/pg Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/pg&logo=vitest&style=flat" alt="@PostgreSQL-Typed/pg Coverage"/>
<a href="https://www.npmjs.com/package/@postgresql-typed/cli">
<img src="https://img.shields.io/npm/v/@postgresql-typed/cli.svg?logo=npm" alt="@PostgreSQL-Typed/CLI Version"/>
<img src="https://img.shields.io/badge/coverage-unknown-informational.svg?placeholder=$coverage-url$/packages/cli&logo=vitest&style=flat" alt="@PostgreSQL-Typed/CLI Coverage"/>
</a>
</div>
<p align="center">
A type-safe PostgreSQL client for Node.js (Using the pg module)
Generate TypeScript types to be used with the @postgresql-typed ecosystem from your PostgreSQL database.
<p>

<br/>
<!-- @PostgreSQL-Typed/Core -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/PostgreSQL-Typed">
PostgreSQL-Typed
@PostgreSQL-Typed/Core
</a>
</h2>
<div align="center">
Expand Down Expand Up @@ -120,21 +120,57 @@
<p>

<br/>
<!-- @PostgreSQL-Typed/CLI -->
<!-- @PostgreSQL-Typed/pg -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/cli">
@PostgreSQL-Typed/CLI
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/pg">
@PostgreSQL-Typed/pg
</a>
</h2>
<div align="center">
<!-- badges -->
<a href="https://www.npmjs.com/package/@postgresql-typed/cli">
<img src="https://img.shields.io/npm/v/@postgresql-typed/cli.svg?logo=npm" alt="@PostgreSQL-Typed/CLI Version"/>
<img src="https://img.shields.io/badge/coverage-unknown-informational.svg?placeholder=$coverage-url$/packages/cli&logo=vitest&style=flat" alt="@PostgreSQL-Typed/CLI Coverage"/>
<a href="https://www.npmjs.com/package/@postgresql-typed/pg">
<img src="https://img.shields.io/npm/v/@postgresql-typed/pg.svg?logo=npm" alt="@PostgreSQL-Typed/pg Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/pg&logo=vitest&style=flat" alt="@PostgreSQL-Typed/pg Coverage"/>
</a>
</div>
<p align="center">
Generate TypeScript types to be used with the @postgresql-typed ecosystem from your PostgreSQL database.
A type-safe PostgreSQL client for Node.js (Using the pg module)
<p>

<br/>
<!-- @PostgreSQL-Typed/postgres -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/postgres">
@PostgreSQL-Typed/postgres
</a>
</h2>
<div align="center">
<!-- badges -->
<a href="https://www.npmjs.com/package/@postgresql-typed/postgres">
<img src="https://img.shields.io/npm/v/@postgresql-typed/postgres.svg?logo=npm" alt="@PostgreSQL-Typed/postgres Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/postgres&logo=vitest&style=flat" alt="@PostgreSQL-Typed/postgres Coverage"/>
</a>
</div>
<p align="center">
A type-safe PostgreSQL client for Node.js (Using the postgres module)
<p>

<br/>
<!-- @PostgreSQL-Typed/TzSwitcher -->
<h2 align="center">
<a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed/tree/main/packages/tzswitcher">
@PostgreSQL-Typed/TzSwitcher
</a>
</h2>
<div align="center">
<!-- badges -->
<a href="https://www.npmjs.com/package/@postgresql-typed/tzswitcher">
<img src="https://img.shields.io/npm/v/@postgresql-typed/tzswitcher.svg?logo=npm" alt="@PostgreSQL-Typed/TzSwitcher Version"/>
<img src="https://img.shields.io/badge/coverage-100%25-success.svg?placeholder=$coverage-url$/packages/tzswitcher&logo=vitest&style=flat" alt="@PostgreSQL-Typed/TzSwitcher Coverage"/>
</a>
</div>
<p align="center">
A <a href="https://github.com/PostgreSQL-Typed/PostgreSQL-Typed">PostgreSQL-Typed</a> extension to switch the timezone of a column from one to another
<p>

<br/>
Expand Down
7 changes: 7 additions & 0 deletions packages/cache/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/dist
/node_modules
/lib
coverage
*.json
*.yml
*.yaml
3 changes: 3 additions & 0 deletions packages/cache/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "../../configs/.eslintrc.cjs",
};
10 changes: 10 additions & 0 deletions packages/cache/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
dist
lib
.github
.*
pnpm*
*.md
*.js
*.d.ts
coverage
1 change: 1 addition & 0 deletions packages/cache/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("../../configs/.prettierrc.cjs");
Loading

0 comments on commit e346b2c

Please sign in to comment.