
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@pgtyped/cli
Advanced tools
This package provides the `pgtyped` command. `pgtyped` supports two modes: normal and watch mode.
This package provides the pgtyped
command.
pgtyped
supports two modes: normal and watch mode.
In normal mode, pgtyped
operates as follows:
srcDir
for query files. Query file name format is specified using the queryFileName
config option.sql
tagged template.emitFileName
option of the config.Watch mode operation is the same, except that pgtyped
doesn't exit after processing all files, but continues running in the background, watching srcDir
for changes and regenerating query types files on file change or creation.
Config file format (config.json
):
{
"emit": {
"mode": "query-file", // Only query-file mode is supported at the moment.
"queryFileName": "queries.ts", // Filenames to scan for SQL queries
"emitFileName": "queries.types.ts" // Filenames to save type information into
},
"srcDir": "./src/", // Directory to scan or watch for query files
"db": {
"dbName": "testdb", // DB name
"user": "user", // DB username
"password": "password", // DB password (optional)
"host": "127.0.0.1" // DB host (optional)
}
}
This package is part of the pgtyped project.
Refer to root README for details.
FAQs
Unknown package
The npm package @pgtyped/cli receives a total of 21,694 weekly downloads. As such, @pgtyped/cli popularity was classified as popular.
We found that @pgtyped/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.