Skip to content

Commit 8461481

Browse files
authored
Merge pull request #9 from launchql/dev/debugging-tests
Enhanced Testing for supabase schemas
2 parents a618cf7 + 67b95b9 commit 8461481

File tree

84 files changed

+12851
-743
lines changed

Some content is hidden

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

84 files changed

+12851
-743
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"jest-in-case": "^1.0.2",
4040
"jest": "^29.6.2",
4141
"lerna": "^8.2.3",
42-
"pgsql-test": "^2.10.0",
42+
"pgsql-test": "^2.11.1",
4343
"prettier": "^3.0.2",
4444
"rimraf": "4.4.1",
4545
"ts-jest": "^29.1.1",

packages/auth/.questions.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"name": "jovonni",
4+
"message": "Enter author full name",
5+
"required": true
6+
},
7+
{
8+
"name": "[email protected]",
9+
"message": "Enter author email",
10+
"required": true
11+
},
12+
{
13+
"name": "auth",
14+
"message": "Enter the module name",
15+
"required": true
16+
},
17+
{
18+
"name": "undefined",
19+
"message": "Enter the module description",
20+
"required": true
21+
},
22+
{
23+
"name": "undefined",
24+
"message": "Enter the repository name",
25+
"required": true
26+
},
27+
{
28+
"name": "undefined",
29+
"message": "Enter your github username",
30+
"required": true
31+
},
32+
{
33+
"name": "undefined",
34+
"message": "Module access?",
35+
"choices": [
36+
"public",
37+
"restricted"
38+
],
39+
"type": "list",
40+
"required": true
41+
}
42+
]

packages/auth/Makefile

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

packages/auth/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# auth
2+
3+
<p align="center">
4+
<img src="https://raw.githubusercontent.com/launchql/launchql/refs/heads/main/assets/outline-logo.svg" width="250"><br />
5+
undefined
6+
</p>
7+
8+
## install
9+
10+
```sh
11+
npm install auth
12+
```
13+
## Table of contents
14+
15+
- [auth](#auth)
16+
- [Install](#install)
17+
- [Table of contents](#table-of-contents)
18+
- [Developing](#developing)
19+
- [Credits](#credits)
20+
21+
## Developing
22+
23+
When first cloning the repo:
24+
25+
```sh
26+
yarn
27+
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
28+
yarn build
29+
```
30+
31+
Or if you want to make your dev process smoother, you can run:
32+
33+
```sh
34+
yarn
35+
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
36+
yarn build:dev
37+
```
38+
39+
## Credits
40+
41+
🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)
42+
43+
44+
## Disclaimer
45+
46+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
47+
48+
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
it('works', () => {
2+
console.log('hello test world!');
3+
})

packages/auth/auth.control

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

0 commit comments

Comments
 (0)