
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-mssql
Advanced tools
MSSQL Native Plugin for React Native for Android
This is a basic implementation of MSSQL on Android allowing opening, closing and running sql on remote databases. This plugin does not allow an MSSQL database to be packaged locally on Android devices. The plugin only communication between remote databases.
Please let me know your projects that use these MSSQL React Native modules. I will list them in the reference section. If there are any features that you think would benefit this library please post them.
npm install --save react-native-mssql
react-native link react-native-mssql
import MSSQL from 'react-native-mssql';
...
const config = {
server: '192.168.1.1', //ip address of the mssql database
username: 'sa', //username to login to the database
password: 'password', //password to login to the database
database: 'admin', //the name of the database to connect to
port: 1234, //OPTIONAL, port of the database on the server
timeout: 5, //OPTIONAL, login timeout for the server
}
const connected = await MSSQL.connect(config);
Returns a promise indicating if the connection was successful.
const query = 'SELECT TOP * FROM USERS'
const result = await MSSQL.executeQuery(query);
Returns a promise with the query results. If Getting data from a table the promise will return an array of objects for each table row.
const query = 'UPDATE USERS SET Active=0'
const result = await MSSQL.executeUpdate(query);
Returns a promise with the number of rows updated. Use this method if performing INSERT, UPDATE or DELETE statements on a database.
const closed = await MSSQL.close();
Closes the currently open database (if any) and returns a promise indicating if the close was successful. It is not necessary to open and close the database when required unless working with multiple databases.
FAQs
MSSQL bindings for React Native (Android)
We found that react-native-mssql 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.