Common syntax and structure
One model type builds the query and holds the loaded row. Go, PHP, Rust, and TypeScript share its method names, value rules, and results.
Generate query, row, and relation types from a schema and execute them with language-specific drivers.
count, err := model.Author().Connect(slave1).GetCountByServiceSeq(7)$count = (new Author)->connect($slave1)->getCountByServiceSeq(7);let count = Author::new().connect(&slave1).get_count_by_service_seq(7).await?;const count = await new Author().connect(slave1).getCountByServiceSeq(7)count = Author().connect(slave1).get_count_by_service_seq(7)Go model.Author() returns *model.AuthorModel. Rust and TypeScript use asynchronous results, and Python a synchronous one. Syntax follows each language; argument meaning, data structure roles, and execution rules are shared.
Read the guide for binding, reads, writes, and relations. See the component diagram for ownership rules.
config/parity.json declares six implementations: Go, PHP, PHP-extension, Rust, TypeScript, and Python. The examples above show the library API forms. The PHP-extension is part of the common implementation set, while its unfinished native behavior and database evidence remain in the checklist. The shared protocol runs planning in the calling process; see the implementation matrix for the verified scope.
DSL · Schema · IR / Plan · Complex query example · Documentation build and deployment · 한국어 문서