Skip to content

yuxiaoli/dbm-systray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbm-systray

Database Tray Application

Installation

# Create a virtual environment
python -m venv venv

# Activate virtual environment (Windows)
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Usage

# View help
python src/db_manager/app.py -h

usage: app.py [-h] [-c CONFIG] [-p PORTS PORTS]

Database Tray Application

options:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        path to the configuration file (default: configs/config.json)
  -p PORTS PORTS, --ports PORTS PORTS
                        available ports: <starting_port_number> <num_ports>

Configuration File Format

The config.json file should be a JSON array where each element represents an entry with the following properties:

  • name (string): The name of the resource.
  • path (string): The file path to the resource. Only .sqlite and .json file extensions are supported.

JSON Schema for config.json

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "path": {
        "type": "string",
        "pattern": "\\.(sqlite|json)$"
      }
    },
    "required": ["name", "path"],
    "additionalProperties": false
  }
}

Environment Configuration

The program will read the starting directory and look for a .env file. In the .env file, you can configure the following environment variables:

  1. EDITOR - Specifies the text editor to be used.
  2. SQLITE_BROWSER_EXE - Path to the SQLite browser executable.
  3. SQLITE_WEB - Configuration for the SQLite web server.
  4. LITECLI - Path to the LiteCLI executable for interacting with SQLite databases.

About

Database manager in the system tray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages