Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@pgtyped/query
Advanced tools
This package provides the `sql` tagged template. The `sql` tagged template requires a generic parameter: `<TQueryType>`. For each query PgTyped generates an interface that can be used in this parameter to type your query.
This package provides the sql
tagged template.
The sql
tagged template requires a generic parameter: <TQueryType>
.
For each query PgTyped generates an interface that can be used in this parameter to type your query.
To run a query defined with the sql
tagged template, call the sql.run
method.
The sql.run
method automatically enforces correct input TParams
and output TResult
types.
public run: (
params: TParams,
dbConnection: IDatabaseConnection,
) => Promise<TResult[]>;
Here dbConnection
is any object that satisifies the IDatabaseConnection
interface. It is used to actually send the query to the DB for execution.
interface IDatabaseConnection {
query: (query: string, bindings: any[]) => Promise<{ rows: any[] }>;
}
This is usually the client
object created with node-postgres, but can be any other connection of your choice.
This package is part of the pgtyped project.
Refer to README for details.
FAQs
This package provides protocol utilities for PgTyped queries.
The npm package @pgtyped/query receives a total of 13,194 weekly downloads. As such, @pgtyped/query popularity was classified as popular.
We found that @pgtyped/query demonstrated a not healthy version release cadence and project activity because the last version was released 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.