Skip to content
HQL
Microsecond
Initializing search
ewiger/hql
Home
Learn
Install
HQL Book
Demo
Examples
Reference
std
hmd
HQL
ewiger/hql
Home
Learn
Learn
Install
HQL Book
HQL Book
HQL Book
Part I: The language
Part I: The language
1. Hello world
2. Data types
2. Data types
2. Data types
Int
Float
Decimal
String
Bool
Bytes
Date and time
Data
Option
Sets, Data and maps
3. Collections
3. Collections
3. Collections
Lists
Sets
Maps
Steps on any collection
4. Functions
4. Functions
4. Functions
Declaring a function
Function bodies
Generic functions
Aliases and holes
5. Modules
5. Modules
5. Modules
Calling a module's functions
Which variance?
Receiver modules
Visibility
How names resolve
Modules and packages
6. SQL-like Queries
7. Streams that do not end
8. Writing results out
9. I/O
9. I/O
9. I/O
Files and Standard Endpoints
Reading with source
Writing with target and sink
Finite or live
Formats and documents
Endpoints by id
Subjects and lakehouse tables
Channels
Logging
The network
Files and folders
Environment and arguments
Effects and what a host allows
hql on the command line
10. The type system
10. The type system
10. The type system
Records
Unions and match
Results
Subtypes and narrowing
Generics
Receiver calls
Operators
Traits
11. Advanced data typing
11. Advanced data typing
11. Advanced data typing
Open and closed types
Type contracts
Data contracts
Validators
Validation as a value
Contracts and schemas
12. Errors
12. Errors
12. Errors
Failures as data
Diagnostics
13. Working with hql
Part II: Data flows
Part II: Data flows
14. ETL pipelines
14. ETL pipelines
Overview
Logical steps and physical plans
15. Endpoints
16. Tables and topics
17. Subjects and the lakehouse
18. APIs, webhooks and stores
19. OLTP
19. OLTP
19. OLTP
The shop's day in one file
When a mistake is found
A replay is the same file
Streams against tables
A transfer is one transaction
20. OLAP
20. OLAP
20. OLAP
Bronze, silver and gold
Grain and keys
Deduplication
Windows
Merge
Incremental loads
Part III: Knowledge and AI
Part III: Knowledge and AI
21. A vault of documents
22. Links and graphs
23. Finding cards by meaning
24. Queries inside documents
25. Agents and runs
26. Agents inside documents
27. The hyper web
Part IV: The standard library
Part IV: The standard library
28. Statistics
29. Random values
30. Digests and encodings
31. Keys and cryptography
Part V: Extending HQL
Part V: Extending HQL
32. Functions and declarations
32. Functions and declarations
32. Functions and declarations
Declarations
How the standard library is built
33. Packages and extensions
34. Writing an extension
34. Writing an extension
34. Writing an extension
The crate
The prelude
The contract
Natives
Values and errors
Functions and the context
35. How a library is loaded
35. How a library is loaded
35. How a library is loaded
Static and dynamic libraries
The entry point
The version rule
36. Installing packages
36. Installing packages
36. Installing packages
A local crate
A shared project
37. The registry and publishing
38. The ml package
Demo
Examples
Reference
Reference
Reference
std
std
std/core
std/doc
std/retrieval
std/graph
std/knowledge
std/collections
std/string
std/seq
std/math
std/stats
std/time
std/random
std/option
std/result
std/regex
std/format
std/io
std/io/fs
std/io/env
std/io/net
std/io/logging
std/io/db/sqlite
std/io/db/postgres
std/io/db/spark
std/io/transaction
std/io/msg/nats
std/io/msg/nats_jetstream
std/crypto/digest
std/encoding
std/bytes
std/crypto
std/validators
hmd
hmd
hmd
hmd/vault
hmd/search
hmd/search/lexical
hmd/search/semantic
Microsecond
¶
In
std/time
.
type Microsecond : TimeUnit
The units a time value truncates to.
Back to top