Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tablex
command
Command tablex is the single-binary, multi-database web administration tool.
|
Command tablex is the single-binary, multi-database web administration tool. |
|
internal
|
|
|
audit
Package audit is TableX's audit trail: a durable, structured record of who did what, to which object, from where, and whether it worked.
|
Package audit is TableX's audit trail: a durable, structured record of who did what, to which object, from where, and whether it worked. |
|
auth
Package auth holds TableX's authentication-adjacent primitives: CSRF token verification, login rate limiting, and the SSRF host guard for ad-hoc logins.
|
Package auth holds TableX's authentication-adjacent primitives: CSRF token verification, login rate limiting, and the SSRF host guard for ad-hoc logins. |
|
config
Package config resolves TableX's runtime configuration from (in increasing precedence) built-in defaults, an optional TOML file, environment variables (TABLEX_*), and command-line flags.
|
Package config resolves TableX's runtime configuration from (in increasing precedence) built-in defaults, an optional TOML file, environment variables (TABLEX_*), and command-line flags. |
|
driver
Package driver is TableX's database abstraction layer.
|
Package driver is TableX's database abstraction layer. |
|
driver/drivertest
Package drivertest is the reusable conformance suite for a TableX Dialect.
|
Package drivertest is the reusable conformance suite for a TableX Dialect. |
|
driver/mysql
Package mysql implements the TableX Dialect for MySQL and MariaDB.
|
Package mysql implements the TableX Dialect for MySQL and MariaDB. |
|
driver/postgres
Package postgres implements the TableX Dialect for PostgreSQL using the pure-Go jackc/pgx/v5 driver (via its database/sql adapter).
|
Package postgres implements the TableX Dialect for PostgreSQL using the pure-Go jackc/pgx/v5 driver (via its database/sql adapter). |
|
driver/sqlite
Package sqlite implements the TableX Dialect for SQLite using the pure-Go modernc.org/sqlite driver (no CGo).
|
Package sqlite implements the TableX Dialect for SQLite using the pure-Go modernc.org/sqlite driver (no CGo). |
|
dump
Package dump builds and writes TableX's database exports.
|
Package dump builds and writes TableX's database exports. |
|
model
Package model defines TableX's engine-neutral domain types.
|
Package model defines TableX's engine-neutral domain types. |
|
server
Package server wires TableX's HTTP layer together: it builds the renderer, session manager, rate limiter and handlers, assembles the middleware chain and route table, serves embedded static assets, and manages graceful startup and shutdown (closing every session pool on the way out).
|
Package server wires TableX's HTTP layer together: it builds the renderer, session manager, rate limiter and handlers, assembles the middleware chain and route table, serves embedded static assets, and manages graceful startup and shutdown (closing every session pool on the way out). |
|
server/handlers
Package handlers implements TableX's HTTP handlers — one file per feature area (auth, home, server, database, table, sql, navigation).
|
Package handlers implements TableX's HTTP handlers — one file per feature area (auth, home, server, database, table, sql, navigation). |
|
session
Package session provides TableX's server-side session management: opaque 256-bit IDs (crypto/rand), a pluggable store, idle/absolute timeouts, CSRF token issuance, and login-time re-keying to prevent fixation — Authenticate mints a NEW session (fresh ID + CSRF, payload attached before the object is shared) and atomically replaces the pre-auth one, so the pre-auth ID can never become authenticated.
|
Package session provides TableX's server-side session management: opaque 256-bit IDs (crypto/rand), a pluggable store, idle/absolute timeouts, CSRF token issuance, and login-time re-keying to prevent fixation — Authenticate mints a NEW session (fresh ID + CSRF, payload attached before the object is shared) and atomically replaces the pre-auth one, so the pre-auth ID can never become authenticated. |
|
sqlscript
Package sqlscript lexes and splits SQL scripts.
|
Package sqlscript lexes and splits SQL scripts. |
|
storage
Package storage is TableX's own metadata database: the small amount of state the application itself needs to outlive a process, kept in a database the operator configures.
|
Package storage is TableX's own metadata database: the small amount of state the application itself needs to outlive a process, kept in a database the operator configures. |
|
view
Package view owns TableX's rendering layer: it parses the embedded html/template set once at startup, exposes a shared func map (icons, humanizers, small helpers), and renders either a full page or — for htmx requests — a fragment that swaps #page_content plus out-of-band chrome.
|
Package view owns TableX's rendering layer: it parses the embedded html/template set once at startup, exposes a shared func map (icons, humanizers, small helpers), and renders either a full page or — for htmx requests — a fragment that swaps #page_content plus out-of-band chrome. |
|
Package web embeds TableX's templates and static assets into the binary, so the compiled program is fully self-contained (no external files at runtime).
|
Package web embeds TableX's templates and static assets into the binary, so the compiled program is fully self-contained (no external files at runtime). |
Click to show internal directories.
Click to hide internal directories.