https://github.com/stlbucket/pg-rls-generator
https://github.com/stlbucket/pg-rls-generator
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stlbucket/pg-rls-generator
- Owner: stlbucket
- Created: 2020-09-24T23:36:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T00:12:13.000Z (almost 6 years ago)
- Last Synced: 2025-10-07T04:15:14.196Z (9 months ago)
- Language: PLpgSQL
- Size: 145 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pg-fn-bucket
============
a bucket of functions for pg
[](https://oclif.io)
[](https://npmjs.org/package/pg-fn-bucket)
[](https://npmjs.org/package/pg-fn-bucket)
[](https://github.com/stlbucket/pg-fn-bucket/blob/master/package.json)
* [Usage](#usage)
* [Commands](#commands)
# Usage
```sh-session
$ npm install -g pg-fn-bucket
$ pg-fn-bucket COMMAND
running command...
$ pg-fn-bucket (-v|--version|version)
pg-fn-bucket/0.0.0 darwin-x64 node-v12.16.2
$ pg-fn-bucket --help [COMMAND]
USAGE
$ pg-fn-bucket COMMAND
...
```
# Commands
* [`pg-fn-bucket generate [FILE]`](#pg-fn-bucket-generate-file)
* [`pg-fn-bucket hello [FILE]`](#pg-fn-bucket-hello-file)
* [`pg-fn-bucket help [COMMAND]`](#pg-fn-bucket-help-command)
* [`pg-fn-bucket init`](#pg-fn-bucket-init)
* [`pg-fn-bucket release [FILE]`](#pg-fn-bucket-release-file)
## `pg-fn-bucket generate [FILE]`
generate all policy scripts
```
USAGE
$ pg-fn-bucket generate [FILE]
OPTIONS
-g, --help show CLI help
```
_See code: [src/commands/generate.ts](https://github.com/stlbucket/pg-fn-bucket/blob/v0.0.0/src/commands/generate.ts)_
## `pg-fn-bucket hello [FILE]`
describe the command here
```
USAGE
$ pg-fn-bucket hello [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ pg-fn-bucket hello
hello world from ./src/hello.ts!
```
_See code: [src/commands/hello.ts](https://github.com/stlbucket/pg-fn-bucket/blob/v0.0.0/src/commands/hello.ts)_
## `pg-fn-bucket help [COMMAND]`
display help for pg-fn-bucket
```
USAGE
$ pg-fn-bucket help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.0/src/commands/help.ts)_
## `pg-fn-bucket init`
initialize config and output directories
```
USAGE
$ pg-fn-bucket init
OPTIONS
-c, --connectionString=connectionString (required) postgres connection string
-f, --force will reset the current-draft to the previous version or to default if this is
a new project
-h, --help show CLI help
-x, --forceAll will reset the entire project
```
_See code: [src/commands/init.ts](https://github.com/stlbucket/pg-fn-bucket/blob/v0.0.0/src/commands/init.ts)_
## `pg-fn-bucket release [FILE]`
copy current-draft dir to a new release dir
```
USAGE
$ pg-fn-bucket release [FILE]
```
_See code: [src/commands/release.ts](https://github.com/stlbucket/pg-fn-bucket/blob/v0.0.0/src/commands/release.ts)_