
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
nicassa-parser-db
Advanced tools
nicassa-parser-db is a CLI toolkit for reading Database Schema for MS-SQL, MySQL, PostgreSQL and SQLite 3. It's intended to be used with nicassa-generator for source code generation.
$ sudo npm install -g nicassa-parser-db
Please note nicassa-parser-db is written in TypeScript.
# create a new schema file
$ nicassa-parser-db init -f schema.json
# optional step: edit the schema and add a connection string
$ vi schema.json
{
"formatVersion": "1.0",
"sequelizeConnect": {
"options": {
"dialect": "sqlite",
"storage": "schema.db"
}
}
}
# create sqlite3 demo database
$ sqlite3 schema.db
CREATE TABLE Roles (
RoleID INTEGER PRIMARY KEY AUTOINCREMENT,
RoleName TEXT NOT NULL
);
CREATE TABLE Users (
UserID INTEGER PRIMARY KEY AUTOINCREMENT,
RoleID INTEGER NOT NULL,
UserName TEXT NOT NULL,
FOREIGN KEY (RoleID) REFERENCES Roles(RoleID)
);
# update the schema (if you added the connection string)
$ nicassa-db-parser update -f schema.json
# update the schema (connection string as parameter, e.g. MS-SQL, MySQL, PostgreSQL)
$ nicassa-db-parser update -f schema.json -u 'postgres://user:pass@example.com:5432/dbname'
{
"filter": {
"excludeTables": false,
"excludeViews": false,
"exculdeColumns": [],
"exculde": [],
"only": []
}
}
{
"nicassaParserDB": {
"formatVersion": "1.0",
"lastUpdateUTC": "Mon, 02 Jan 2017 23:43:48 GMT",
"sequelizeConnect": {
"options": {
"dialect": "sqlite",
"storage": "./test.db",
"benchmark": true,
"logging": false
}
},
"filter": {
"excludeTables": false,
"excludeViews": false,
"exculdeColumns": [],
"exculde": [],
"only": []
},
"schema": {
"dialect": "sqlite",
"tables": [
{
"name": "Roles",
"columns": [
{
"name": "RoleID",
"dataType": "INTEGER",
"nullable": true,
"defaultValue": null,
"length": null,
"precision": null,
"pk": true,
"referencedTableName": null,
"referencedColumnName": null
},
{
"name": "RoleName",
"dataType": "TEXT",
"nullable": false,
"defaultValue": null,
"length": null,
"precision": null,
"pk": false,
"referencedTableName": null,
"referencedColumnName": null
}
]
},
{
"name": "Users",
"columns": [
{
"name": "UserID",
"dataType": "INTEGER",
"nullable": true,
"defaultValue": null,
"length": null,
"precision": null,
"pk": true,
"referencedTableName": null,
"referencedColumnName": null
},
{
"name": "RoleID",
"dataType": "INTEGER",
"nullable": false,
"defaultValue": null,
"length": null,
"precision": null,
"pk": false,
"referencedTableName": "Roles",
"referencedColumnName": "RoleID"
},
{
"name": "UserName",
"dataType": "TEXT",
"nullable": false,
"defaultValue": null,
"length": null,
"precision": null,
"pk": false,
"referencedTableName": null,
"referencedColumnName": null
}
]
}
],
"views": []
}
}
}
FAQs
CLI based schema 2 JSON parser for Sequelize
We found that nicassa-parser-db 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.