0

Is there any way I could use HTML or JavaScript to make GET/POST requests directly on SQLite database. I want to add rows to the database and be able to retrieve data and display it on a webpage?

P.S. I know I could use PHP but I am not very comfortable with it.

8
  • 1
    your question is a bit vague, but a good technology for this is couch db. See couchdb.apache.org Commented Jun 12, 2018 at 4:54
  • See this : stackoverflow.com/questions/857670/… Commented Jun 12, 2018 at 4:54
  • @sakurashinken nice suggestion but hardly what I'd call an "SQL database" Commented Jun 12, 2018 at 4:55
  • 1
    You can use NodeJS to code the back end part using javascript and use whichever SQL DB you want. Commented Jun 12, 2018 at 4:58
  • 1
    github.com/olsonpm/sqlite-to-rest Commented Jun 12, 2018 at 5:04

1 Answer 1

1

I am not sure what your application requirements are, It is not advisable to query SQL directly from the client. Although you can use library like:

http://www.js-data.io/docs/js-data-sql

which has a SQL adapter so that you can query it directly using JS.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.