Skip to main content
Version: v1.1

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

  1. For detailed instructions on working with logs, see Get service logs.

  2. Open the log file in a text editor and search for "[AosEdge] Print session list:" and related entries, as shown in the screenshots below.

    Result 1 Result 1

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