Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```