Profile
Back to NewsBack
GitHub Trending 1 min
Reader Mode
mojo-lang/mojo: A data oriented, simple but powerful DSL language.

mojo-lang/mojo: A data oriented, simple but powerful DSL language.

15 hours ago

Mojo

Project layout

Package declarations are consolidated in package.mojo. Sources live in mojo/; Go, Java, Markdown, OpenAPI, and Protobuf outputs share the root go/, java/, document/, openapi/, and protobuf/ directories. From go/, use go run ./cmd/mojo build -t api .. for all declared packages, or go run ./cmd/mojo build -t go ../mojo/core for one package.

Regenerating the core libraries

From go/, run go run ./cmd/mojo bootstrap to regenerate Go, Java, Protobuf, Markdown documentation, and OpenAPI definitions, then rebuild the CLI. Use go run ./cmd/mojo bootstrap -t java to update the shared Java library, or -t go,java to regenerate both languages. See the Java build guide. See the bootstrap guide for the source layout, outputs, and single-package builds.

Use mojo build -t api,service . to generate backend services and entity CRUD models under service-go/pkg/model. See the entity model guide for primary keys, database initialization, and generated operations.

What can do

  1. Code generator
  2. Database quey language for relational, document and graph database (inspired by the RQL of the Rethink_d_b)
1. SQL 2. Graph_q_l 3. Cypher Query Language
  1. Script for data process
Chat with me