offline_demo

command
v0.23.3 Latest Latest
Warning

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

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

README

Offline POI demo

This demo shows a deliberately small embedded use case: 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

The demo intentionally uses a tiny dataset. It illustrates the lifecycle and read-only behavior for embedded applications; it is not a substitute for the dedicated POI-index or standard MBTiles paths used with larger map datasets.

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