Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Paradigm inversion - write web applications in SQL instead of JavaScript.
If like me, you find the way web app development is done today as tedious, and wasteful, then join me in creating a true "application programming language" (or DSL of you prefer), as opposed to using a general purpose language (JavaScript) for writing applications.
In 1991 Oracle added a few extensions to SQL to create Procedural SQL, so now I have added a few more extensions to SQL, to create QUery Application Language Extensions (QUALE) - it is that simple.
Recent change log: Added My-SQL and MS-SQL drivers. Updated Node version- caused a lot of breakage.
NPM shows thousands of weekly downloads, but I have not yet had feedback from the community, so please if you have any questions, comments or even just want to say hi, please drop me a email for a personal response via npm-support@sql-mvc.com
*Alpha version 0.0 Notice: When evaluating SQL-MVC keep in mind this project is still version 0.0.x- alpha/preview release. A lot of stuff is not 100% polished or even to spec, try and pick up the key points we are trying to demonstrate not shortcomings or bugs (although all feedback is welcome). *
Live Demo at todomvc.sql-mvc.com This is a complete implementation of todomvc.com functionality in 40 lines of code.
<#model
CREATE TABLE TODO_MVC --:{as:"Table"}
(
REF VARCHAR(40), --:{as:"pk"}
NAME VARCHAR(100), --:{as:"Text",size:40,title:"todo",onupdate:"owner=session.id"}
OWNER VARCHAR(40), --:{Type:"Hide"}
STATUS VARCHAR(10) default '' --:{Type:"Pick",List:"Ticked",onupdate:"owner=session.id"}
);#>
<#controller(todo.clear.button)
button(title:"Clear Completed",if:"(select count(ref) from todo_mvc where owner=session.id and status='1')!=0" )
sql update todo_mvc set status='3' where owner=session.id and (status='1');#>
<#controller(todo.itemcount)
ifquery ((select count(ref) from todo_mvc where owner=session.id and (status='' or status is null))!=1)
print () ($select count(*) from todo_mvc where owner=session.id and (status='' or status is null) $) items left
elsequery
print () ($select count(*) from todo_mvc where owner=session.id and (status='' or status is null) $) item left
endquery#>
<#view
table()
Select --:{Title:"Make new records",from:TODO_MVC,autoinsert:top,tablestyle:Todo}
STATUS, --:{Action:Edit,debug:0,autosave:yes}
NAME, --:{Action:Edit,placeholder:"What needs to be done (tab to save)",autosave:yes}
REF --:{Action:View,Type:Hide}
From TODO_MVC
where (owner=session.id and ( (here.todo_type='' and (status!='3' or status is null))
or( (status='' or status is null) and here.todo_type='1')or(status='1' and here.todo_type='2')))
use(todo.itemcount)
button(title:"View all") set here.todo_type='';
button(title:"Active") set here.todo_type='1';
button(title:"Completed") set here.todo_type='2';
use(todo.clear.button)
#>
The following may be broken as of June 2018 due to node changes.
QualeQuest/SQL-MVC is a Dual-licensed, either under the AGPL 3 license, or for a fee, you can license under a commercial-friendly license, which lets you embed, modify, and redistribute QualeQuest/SQL-MVC with your commercial application, without having to open source your application.
FAQs
Paradigm inversion-write web applications in SQL instead of JavaScript
The npm package sql-mvc receives a total of 16 weekly downloads. As such, sql-mvc popularity was classified as not popular.
We found that sql-mvc 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.