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.
asked Jun 12, 2018 at 4:52
jainilvachhani
9549 silver badges15 bronze badges
-
1your question is a bit vague, but a good technology for this is couch db. See couchdb.apache.orgsakurashinken– sakurashinken2018年06月12日 04:54:15 +00:00Commented Jun 12, 2018 at 4:54
-
See this : stackoverflow.com/questions/857670/…Sail– Sail2018年06月12日 04:54:44 +00:00Commented Jun 12, 2018 at 4:54
-
@sakurashinken nice suggestion but hardly what I'd call an "SQL database"Phil– Phil2018年06月12日 04:55:03 +00:00Commented Jun 12, 2018 at 4:55
-
1You can use NodeJS to code the back end part using javascript and use whichever SQL DB you want.Victor Lia Fook– Victor Lia Fook2018年06月12日 04:58:17 +00:00Commented Jun 12, 2018 at 4:58
-
1github.com/olsonpm/sqlite-to-restPhil– Phil2018年06月12日 05:04:17 +00:00Commented Jun 12, 2018 at 5:04
1 Answer 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:
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
default