Skip to content

Commit 92eb3bd

Browse files
committed
updates
1 parent b15d555 commit 92eb3bd

135 files changed

Lines changed: 2008 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/clinical/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2026 Dan Lynch <pyramation@gmail.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/clinical/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
EXTENSION = clinical
2+
DATA = sql/clinical--0.0.1.sql
3+
4+
PG_CONFIG = pg_config
5+
PGXS := $(shell $(PG_CONFIG) --pgxs)
6+
include $(PGXS)
7+

packages/clinical/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# clinical
2+
3+
<p align="center" width="100%">
4+
<img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
5+
</p>
6+
7+
<p align="center" width="100%">
8+
<a href="https://github.com/pyramation/postgres-conference/actions/workflows/ci.yml">
9+
<img height="20" src="https://github.com/pyramation/postgres-conference/actions/workflows/ci.yml/badge.svg" />
10+
</a>
11+
<a href="https://www.npmjs.com/package/clinical"><img height="20" src="https://img.shields.io/github/package-json/v/pyramation/postgres-conference?filename=packages%2Fclinical%2Fpackage.json"/></a>
12+
</p>
13+
14+
## Developing
15+
16+
This module was generated with `pgpm init`. For a complete guide on creating and testing database modules, see [Creating Your First Module](https://constructive.io/learn/modular-postgres/creating-first-module).
17+
18+
```sh
19+
# Install dependencies
20+
pnpm install
21+
22+
# Run tests
23+
pnpm test
24+
25+
# Run tests in watch mode
26+
pnpm test:watch
27+
28+
# Deploy to a database
29+
pgpm deploy --database your_db --createdb --yes
30+
```
31+
32+
## Credits
33+
34+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
35+
36+
## Disclaimer
37+
38+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
39+
40+
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { getConnections, PgTestClient } from 'pgsql-test';
2+
3+
let db: PgTestClient;
4+
let pg: PgTestClient;
5+
let teardown: () => Promise<void>;
6+
7+
beforeAll(async () => {
8+
({ pg, db, teardown } = await getConnections());
9+
});
10+
11+
afterAll(async () => {
12+
await teardown();
13+
});
14+
15+
beforeEach(async () => {
16+
await db.beforeEach();
17+
});
18+
19+
afterEach(async () => {
20+
await db.afterEach();
21+
});
22+
23+
describe('first test', () => {
24+
it('should pass', async () => {
25+
const result = await pg.query('SELECT 1 as num');
26+
expect(result.rows[0].num).toBe(1);
27+
});
28+
});
29+

packages/clinical/clinical.control

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# clinical extension
2+
comment = 'clinical extension'
3+
default_version = '0.0.1'
4+
module_pathname = '$libdir/clinical'
5+
requires = 'plpgsql'
6+
relocatable = false
7+
superuser = false

packages/clinical/jest.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
6+
// Match both __tests__ and colocated test files
7+
testMatch: ['**/?(*.)+(test|spec).{ts,tsx,js,jsx}'],
8+
9+
// Ignore build artifacts and type declarations
10+
testPathIgnorePatterns: ['/dist/', '\\.d\\.ts$'],
11+
modulePathIgnorePatterns: ['<rootDir>/dist/'],
12+
13+
// Only watch js, ts, and sql files
14+
watchPathIgnorePatterns: [
15+
'/dist/',
16+
'/node_modules/'
17+
],
18+
19+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'sql'],
20+
};

packages/clinical/package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "clinical",
3+
"version": "0.0.1",
4+
"author": "Dan Lynch <pyramation@gmail.com>",
5+
"description": "clinical",
6+
"homepage": "https://github.com/pyramation/postgres-conference",
7+
"license": "MIT",
8+
"publishConfig": {
9+
"access": "public",
10+
"directory": "dist"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/pyramation/postgres-conference"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/pyramation/postgres-conference/issues"
18+
},
19+
"scripts": {
20+
"lint": "eslint . --fix",
21+
"test": "jest",
22+
"test:watch": "jest --watchAll"
23+
},
24+
"keywords": [],
25+
"devDependencies": {
26+
"pgsql-test": "^4.7.6",
27+
"makage": "^0.3.0"
28+
}
29+
}

packages/clinical/pgpm.plan

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%syntax-version=1.0.0
2+
%project=clinical
3+
%uri=clinical

packages/documents/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2026 Dan Lynch <pyramation@gmail.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/documents/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
EXTENSION = documents
2+
DATA = sql/documents--0.0.1.sql
3+
4+
PG_CONFIG = pg_config
5+
PGXS := $(shell $(PG_CONFIG) --pgxs)
6+
include $(PGXS)
7+

0 commit comments

Comments
 (0)