
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.
Command line tool to convert MySql database into Realm object database
the plans are to get support for
mssqlas for other sql adapters, so any contribution is very welcome
Install using yarn:
yarn global add sql2realm
Or via npm:
npm install -g sql2realm
Usage: sql2realm [config file]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-s, --skip skip some tables [array] [default: []]
-c, --chunk chunk size [default: 10000]

let say we have Mysql server up and running and have a database named mock with a table named mock_data (see the dump)
and this is the config file config.json
{
"mysql": {
"host": "127.0.0.1",
"user": "test",
"password": "test",
"database": "mock"
},
"realm": {
"database": "./db.realm"
},
"tables": {
"mock_data": {
"schema": {
"name": "Users",
"primaryKey": "id",
"properties": {
"id": "int",
"first_name": "string",
"last_name": "string",
"email": "string",
"gender": "string",
"ip_address": "string"
}
},
}
}
}
lets discuss config file sections one by one:
"mysql": {...}
this is regular mysql/mariadb connection options
"realm": {...}
for realm there is only one option:
database - path to database that will be createdthis are the tables from sql to be converted into Realm
"tables": {
"mock_data": {
"schema": {
mock_data - is the real name of table in Mysqlschema - is the Realm DB Schema. It should be designed according to Realm principles.MIT
FAQs
Command line tool to convert MySql database into Realm object database
The npm package sql2realm receives a total of 5 weekly downloads. As such, sql2realm popularity was classified as not popular.
We found that sql2realm 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.