For AI agents: the complete documentation index is available at /waveless/llms.txt, the full documentation bundle is available at /waveless/llms-full.txt, and this page is available as Markdown at /waveless/guide/reference/project/compiler.md.

Compiler

Waveless accepts compiler configuration under [compiler]. The fields used by the compiler are defined with endpoints_dir:

[compiler]
endpoints_dir = "./endpoints/"

Endpoint generators are defined under the [[compiler.endpoint_generators]] array. A checksum flag can be set per generator:

[[compiler.endpoint_generators]]
checksum = true

Then the backend should be specified using [compiler.endpoint_generators.backend.{backend_name}] and setting the required fields by the given backend.

Note that there could be multiple endpoint generators with different backends (not necessarily a database).

An example of MySQL endpoint generator configurations (using the waveless_sql backend) is given:

[[compiler.endpoint_generators]]
checksum = true

[compiler.endpoint_generators.backend.MySQL]
database = "main"
skip_tables = ["_private_table"]

[[compiler.endpoint_generators]]
checksum = true

[compiler.endpoint_generators.backend.MySQL]
database = "users"
skip_tables = ["_private_table"]

Get more details at waveless_commons::project::Compiler.