From 5cdc71d268e8a972e8d30b224c4c191effbf5e61 Mon Sep 17 00:00:00 2001 From: Brikaa Date: Tue, 28 Sep 2021 17:29:56 +0200 Subject: [PATCH] pkg(sqlite3-3.36.0): Added sqlite3 3.36.0 --- cli/package-lock.json | 4 ++-- packages/sqlite3/3.36.0/build.sh | 10 ++++++++++ packages/sqlite3/3.36.0/environment | 2 ++ packages/sqlite3/3.36.0/metadata.json | 5 +++++ packages/sqlite3/3.36.0/run | 3 +++ packages/sqlite3/3.36.0/test.sql | 1 + readme.md | 5 +++-- 7 files changed, 26 insertions(+), 4 deletions(-) create mode 100755 packages/sqlite3/3.36.0/build.sh create mode 100644 packages/sqlite3/3.36.0/environment create mode 100644 packages/sqlite3/3.36.0/metadata.json create mode 100644 packages/sqlite3/3.36.0/run create mode 100644 packages/sqlite3/3.36.0/test.sql diff --git a/cli/package-lock.json b/cli/package-lock.json index f7c2771..335ed21 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "piston-cli", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "piston-cli", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "dependencies": { "axios": "^0.21.2", diff --git a/packages/sqlite3/3.36.0/build.sh b/packages/sqlite3/3.36.0/build.sh new file mode 100755 index 0000000..18d5b8f --- /dev/null +++ b/packages/sqlite3/3.36.0/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash +PREFIX=$(realpath $(dirname $0)) + +curl https://www.sqlite.org/2021/sqlite-amalgamation-3360000.zip -o sqlite.zip +unzip -q sqlite.zip +rm -rf sqlite.zip + +gcc -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION sqlite-amalgamation-3360000/shell.c sqlite-amalgamation-3360000/sqlite3.c -o sqlite3 + +rm -rf sqlite-amalgamation-3360000 diff --git a/packages/sqlite3/3.36.0/environment b/packages/sqlite3/3.36.0/environment new file mode 100644 index 0000000..50242cc --- /dev/null +++ b/packages/sqlite3/3.36.0/environment @@ -0,0 +1,2 @@ +#!/bin/bash +export PATH=$PWD:$PATH diff --git a/packages/sqlite3/3.36.0/metadata.json b/packages/sqlite3/3.36.0/metadata.json new file mode 100644 index 0000000..d531aaf --- /dev/null +++ b/packages/sqlite3/3.36.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "sqlite3", + "version": "3.36.0", + "aliases": ["sqlite", "sql"] +} diff --git a/packages/sqlite3/3.36.0/run b/packages/sqlite3/3.36.0/run new file mode 100644 index 0000000..8484f3d --- /dev/null +++ b/packages/sqlite3/3.36.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +sqlite3 < "$1" diff --git a/packages/sqlite3/3.36.0/test.sql b/packages/sqlite3/3.36.0/test.sql new file mode 100644 index 0000000..3a3c57b --- /dev/null +++ b/packages/sqlite3/3.36.0/test.sql @@ -0,0 +1 @@ +SELECT 'OK'; diff --git a/readme.md b/readme.md index a154fe6..95fdb07 100644 --- a/readme.md +++ b/readme.md @@ -42,10 +42,10 @@
# Notes About Hacktoberfest - + While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PRs. If we see PR abuse for Hacktoberfest, we will stop providing Hacktoberfest approval for pull requests. - + We are accepting PRs for: * Packages - updating package versions, adding new packages * Documentation updates @@ -374,6 +374,7 @@ Content-Type: application/json `ruby`, `rust`, `scala`, +`sqlite3`, `swift`, `typescript`, `basic`,