Drizzle-style typed ORM for VictoriaLogs, version 0.3.2, with schema-first queries, typed inserts, and zero dependencies. Provides a fluent query builder for LogsQL, supporting select, count, group-by, insert, raw queries, and health checks. Ships TypeScript types and supports Basic Auth, Bearer tokens, or no auth. Differentiates from raw LogsQL clients by providing type-safe stream definitions, column types (text, timestamp, enum), and operators (eq, contains, not, exists, regex) with full TypeScript inference. Released as an early-stage package (0.x) on npm.
npm install victoria-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a VictoriaLogs client, defines a typed stream schema, queries bounced emails with a subject filter, and logs results.
Supply username and password fields in the config object.
Define at least one column (e.g., text('id')) in the stream definition.Pass a relative time string (e.g., '30m', '1h', '7d') to after().
Call count() directly on the query builder without preceding limit/offset.
Use raw queries with explicit LogsQL for OR conditions, or chain .where() with all AND conditions.
Use import { victoriaLogs } from 'victoria-orm' and ensure package.json has "type": "module" or use .mjs file extension.Define at least one column in the stream, e.g., { id: text('id') }.Pass only the base URL (e.g., http://localhost:9428) without any path suffix.
Ensure username/password match VictoriaLogs -httpAuth.username / -httpAuth.password flags, or remove auth config if server runs with --httpListenAddr without auth.
No dependency data recorded yet.