ESP32 MQTT IoT Communication
Loading...
Searching...
No Matches
db Namespace Reference

Creates a sqlite database. More...

Functions

None create_tables (str schema_path, str db_path)
 Creates a database according to a schema.
 
 main ()
 Creates a database using the schema saved at "db/iot_schema.sql" and saving it to "db/iot.db".
 

Detailed Description

Creates a sqlite database.

Function Documentation

◆ create_tables()

None db.create_tables ( str  schema_path,
str  db_path 
)

Creates a database according to a schema.

Parameters
schema_pathpath to the .sql file containing the schema for the database
db_pathintended path for the .db file
Creates a database according to a schema

◆ main()

db.main ( )

Creates a database using the schema saved at "db/iot_schema.sql" and saving it to "db/iot.db".

Generates A SQL database with a given schema