meangrape / gogurl Goto Github PK
View Code? Open in Web Editor NEWgogurl remembers nicknames for URLs and redirects you to the actual URL
License: BSD 3-Clause "New" or "Revised" License
gogurl remembers nicknames for URLs and redirects you to the actual URL
License: BSD 3-Clause "New" or "Revised" License
Adding PRAGMA statements to the db creation SQL causes the tests to fail. The SQL worked manually with cat links.sql | sqlite3 test.db
Setting phasers to stun... (port 16789) (ctrl-c to quit)
SQLite3 returned ErrorError while attempting to perform prepare "INSERT INTO link (name, url) VALUES (:name, :url) ": no such table: link
SQLite3 returned ErrorError while attempting to perform prepare "SELECT url FROM link WHERE name = :name ": no such table: link
@mitchellwrosen You might have some insight, but I'll keep researching myself.
The SQL added to the beginning was:
PRAGMA journal_mode=WAL;
PRAGMA wal_autocheckpoint=100;
Steps to reproduce (using httpie
):
$ http <server> name=foo url=bar
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Wed, 14 Mar 2018 15:41:31 GMT
Server: nginx/1.12.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked
{
"id": 23,
"result": "success"
}
Follwed by:
$ http <server> name=foo url=bar
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Type: text/plain; charset=utf-8
Date: Wed, 14 Mar 2018 15:43:30 GMT
Server: nginx/1.12.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked
Something went wrong
Should deleting a non-existent key 404 instead?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.