International Sensor Development Project: This project is a voting system that uses a raspberry pi server and multiple voting devices. The system is easy, secure, scalable, and supports anonymous and registered voting. This repository focuses on the Raspberry Pi server.
The goal is to create a function that takes in as an argument a string consisting of an SQL query and posts it to the DB. If possible the function should verify if the post was successful and return True or False if applicable.
Arguments
SQL Query String: The SQL query to be posted to the database.
Returns
Boolean: Returns True or False indicating the success or failure, respectively, of posting the SQL query to the database.
Post Query to Database Function
Goal
The goal is to create a function that takes in as an argument a string consisting of an SQL query and posts it to the DB. If possible the function should verify if the post was successful and return
True
orFalse
if applicable.Arguments
Returns
True
orFalse
indicating the success or failure, respectively, of posting the SQL query to the database.Function Name:
postQueryToDB