Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shopstic/pg-ts
PostgreSQL introspection into TypeScript types
https://github.com/shopstic/pg-ts
Last synced: 4 days ago
JSON representation
PostgreSQL introspection into TypeScript types
- Host: GitHub
- URL: https://github.com/shopstic/pg-ts
- Owner: shopstic
- License: apache-2.0
- Created: 2023-10-03T20:38:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-07T17:22:09.000Z (6 months ago)
- Last Synced: 2024-08-16T15:48:12.083Z (3 months ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PostgreSQL introspection into TypeScript types
```bash
deno run -A --check ./src/cli.ts gen ...
``````
USAGE EXAMPLE:gen --hostname=... --port=... --database=... --user=... --password=... --schemas="public" [--tableNaming="camel"] --outputDirectory=... --helperImportLocation=...
ARGUMENTS:
--hostname (string)
--port (integer)
--database (string)
--user (string)
--password (string)
--schemas (string | string...) One or more postgres schemas to introspect
--tableNaming="snake" ("snake" | "camel" | "pascal") Naming convention for generated table names
--outputDirectory (string)
--helperImportLocation (string)
```