offline_demo

command
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

README

Offline POI demo

Part of TinySQL. See the root GIS and storage sections for the broader map-data workflow.

Create or reopen a local POI snapshot, put it into read-only mode, and search it without a server, network access, or SQLite dependency.

# In-memory dataset
go run ./cmd/offline_demo

# Build a reusable local snapshot, then reopen it on the next run
go run ./cmd/offline_demo -snapshot /tmp/tinysql-poi.snapshot -query museum

# Stable output for scripts
go run ./cmd/offline_demo -snapshot /tmp/tinysql-poi.snapshot -json

Further flags: -rebuild ignores an existing snapshot, -read-only (default true) rejects writes after the dataset is loaded or created.

The tiny dataset only illustrates the lifecycle and read-only behavior; larger map datasets use the dedicated POI-index or MBTiles paths.

Documentation

Overview

Command offline_demo is a small local-first tinySQL example.

It creates a compact POI database, optionally persists it as a snapshot, reopens that snapshot on later runs, and serves a read-only text search. No network service, external database, or application-specific runtime is required.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL