
Product
Introducing Repository Labels and Security Policies
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
mysql2-nestjs
Advanced tools
For more detail look at MySql2
@Module({
imports: [
NestMysql2Module.register({
host: "localhost",
port: 30006,
user: "root",
password: "example"
})
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule { }
Then in your controller
:
constructor(
@InjectMysql()
private readonly mysql: Mysql
) { }
const [result, fields] = await this.mysql.query("SELECT 1+2");
FAQs
NestJS package for mysql2
The npm package mysql2-nestjs receives a total of 16 weekly downloads. As such, mysql2-nestjs popularity was classified as not popular.
We found that mysql2-nestjs 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.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.
Product
Socket now supports .NET, bringing supply chain security and SBOM accuracy to NuGet and MSBuild-powered C# projects.