Skip to main content

Crate datapress_core

Crate datapress_core 

Source
Expand description

datapress-core โ€” shared types used by every backend.

Backend-agnostic pieces: configuration parsing, error types, request / response models, schema description, and admin-token auth.

Modulesยง

admin
Admin endpoint authentication.
backend
Backend-agnostic interface used by the shared HTTP handlers.
banner
Startup banner โ€” printed once when a backend boots.
config
Runtime configuration loaded from datasets.toml.
errors
handlers
HTTP handler surface, organised by API version.
models
schema
Backend-agnostic schema model for a registered dataset.
server
Shared actix-web bootstrap. Both backends call serve from their own thin serve(cfg) entry point.
sql
Shared safety gate for the raw-SQL endpoint (POST /api/v1/sql).
timeout
Tiny per-request timeout middleware.