Sample - Python SQLite
Store the database in persistent storage.
Prerequisites
- Tools: AosCore SDK, SQLite, CMake, Bash, Wget, Python, and a virtual environment (
venv) are installed.
Concept
This example demonstrates how to persist SQLite data across service restarts.
Source Code
You can explore the example by checking out the source code.
Upload service to AosCloud
From the sqllite directory, run:
<host>:~/demo-services/sqllite$ aos-signer go
Starting DEPLOYMENT BUNDLE SIGNING process...
Starting CONFIG VALIDATION process...
Validating config... VALID
Validating image paths... VALID
Starting BUNDLE BUILDING process...
....
Uploading... DONE
Deployment bundle successfully uploaded!
Validate Result of Service
-
For detailed instructions on working with logs, see Get service logs.
-
Open the log file in a text editor and search for
"[AosEdge] Print session list:"and related entries, as shown in the screenshots below.

If the message is found, the service is working correctly.