Rust universal code generator Lotus early adopter version 10 released the latest video, DataDummy mode for pre-sales and product managers

Rust universal code generator Lotus Early Access Edition 10 released the latest video detailing the DataDummy pattern for pre-sales and product managers

Rust general code generator lotus early adopter version 10 releases the latest video, which introduces in detail the DataDummy pattern carefully prepared for pre-sales and product managers. Please see the video: https://www.bilibili.com/video/BV1Fh4y1P7xF/

The DataDummy pattern is a pattern for presentation, rapid prototyping. No database link is required, the database is simulated using in-memory data objects. But there is no data persistence function. It also supports front-end and back-end dual systems. Among them, the front-end project is completely consistent with the normal mode. The difference is the backend project.

Rust universal code generator Lotus early adopter version 10. This version supports DataDummy mode, which is the prototype function of pure memory data mode, which is called dumb data mode in Chinese. Developed for pre-sales and product managers. To generate this schema, just set the schema field to DataDummy. Code generators can behave like normal database code generators, and can also contain login modules. But the data is temporarily stored, just restart the application, and the data will automatically restore to the initialization data. This is a pattern developed specifically for prototyping needs.

Red Lotus early adopter version 10 supports enumeration, that is, constant table, which cannot be modified, constructed by initializing data, and memory data mode. To use enumeration, you only need to set its tab to start with Enum, other settings are exactly the same as Domain, and the generated enumeration only includes the read function. Note that the User, Role and Privilege of the login module cannot be set as enumerations. The red lotus early adopter version 10 has optimized the module structure, main.rs only contains the entry point and the minimum other programs, and other modules are placed in lib.rs, and the default image location of the front-end code generator is changed to the static directory, which is convenient for vue Front-end construction. Oracle database is not supported yet. Please deploy it in the webapps directory of Tomcat9.

Code generator project address: https://gitee.com/jerryshensjf/Lotus

Download address of binary war package:  https://gitee.com/jerryshensjf/Lotus/attach_files

Universal code generator for Rust: Lotus

introduce

Universal code generator for Rust: Lotus

Software architecture description

The software is written in Java and deployed in the webapps directory of Tomcat 9. The current version is compiled with openjdk 17.

This software is adapted from the Go language universal code generator: Fairchild.

The code generation is a rust 1.69 environment. Using Axum 0.6.20, tokio 1.32.0, sqlx 0.7.1 database access layer and MariaDB, MySQL 8, PostgreSQL database.

Rust universal code generator Lotus early adopter version 10. This version supports the DataDummy mode, which is the prototype function of the pure memory data mode, and is developed for pre-sales and product managers. Support enumeration, optimize the module structure, main.rs only contains the entry point and the minimum other programs, other modules are placed in lib.rs, the default image location of the front-end code generator is changed to the static directory, which is convenient for the vue front-end of construction. Oracle database is not supported yet.

Rust universal code generator Lotus early adopter version 9. This version updates Axum to the latest version 0.6.20, which improves the error message of front-end login failure and removes the debugging information output on the console when the back-end is running. Oracle database is not supported yet.

Rust general-purpose code generator lotus early adopter version 8 has been released. This version updates JQuery EasyUI to the latest version 1.10.17. This release resolves compilation warning issues. Supports null values ​​for dates and datetimes. Fixed the defect that the back-end editing did not support updating pictures caused by the excessive update of the early adopter version 7. and some other flaws. Oracle database is not supported yet.

Rust general-purpose code generator Lotus has released Red Lotus early adopter version 7, which is the most important milestone so far. The most important update is that the database access framework has been greatly updated from 0.3.5 to the latest version of 0.7.1. This is a major update, and it took several attempts to successfully complete this long-planned update. The second update eliminates 90% of compilation warnings on the code generator, greatly improving the code quality of the code generator. Then through more tests, a series of defects were fixed.

Rust universal code generator Lotus early adopter version 6. This version supports date and date time, and supports three major generation function groups. Support automatic login module, support to modify your own information and login password. Fixed the error problem of cloning and batch cloning of early adopter version 5, and fixed the problem that editing users of early adopter version 5 would cause the password to become invalid. and some other flaws. Oracle database is not supported at the moment, and null values ​​are not supported at the moment. Functionally benchmarked against the King of Optoelectronics Code Generator version of Java.

Rust Universal Code Generator Lotus Early Access Version 5. This version is the first available version with complete functions, supports automatic login module, supports the latest version of Axum 0.6.18, completely improves the database access layer, solves the problem of creating a new database link for each query, so that it can only query more than 10 times Major flaw, after more testing, this version supports MariaDB, MySQL and PostgreSQL databases. All attached non-Oracle examples are supported. This release is of usable functionality and quality. Early adopter version 4. Through programming and testing, the Vue front-end generated by Lotus was finally completely repaired. Now, the front-end and back-end can work smoothly without any obstacles. In addition to the elastic login module and Oracle database functions, Lotus Early Access Version 4 has complete other functions. Everyone can already try it out.

Lotus early adopter version 3 upgrades Axum to 0.6.6, and eliminates 2/3 compilation warnings. Subsequent versions may downgrade Axum back to 0.4. Fans of Axum0.6 please use this version. You can use the attached non-Oracle sample test system to get a working code generation.

This version supports Go language compatibility, that is, Go language general code generator Fairchild's templates directly generate Rust code generators. It also supports Java compatibility, that is, it supports the Java general code generator light, the Wings of Peace code generator, and the Excel template of the boundless code generator to directly generate Rust code generators.

Early adopter version 4 supports Excel and PDF data export. Supports Vue, an independent front-end for ElementUI. Supports MySQL, MariaDB and PostgreSQL databases. Support picture function. All attached non-Oracle examples are supported. Welcome to try it out.

Baidu topic

#Universal Code Generator#

Introduction video

For an introductory video of the early adopter version 10, please see:

https://www.bilibili.com/video/BV1Fh4y1P7xF/

For the introductory video of early adopter version nine, please see:

https://www.bilibili.com/video/BV1Hp4y1E7T2/

Please see the introduction video for early adopter version 8:

https://www.bilibili.com/video/BV1qG411f7io/

https://www.bilibili.com/video/BV1yV4y1Y7pM/

For the introductory video of early adopter version seven, please see:

https://www.bilibili.com/video/BV1Kz4y1W7eH/

For the introduction video of early adopter version six, please see:

https://www.bilibili.com/video/BV1Cj41197nY/

For the introduction video of early adopter version 5, please see:

https://www.bilibili.com/video/BV1Cg4y1574C/

Rust Universal Code Generator Lotus Early Access Version 4 releases an introduction video to build Rust Universal Code Generator Lotus from source code. And generate the front-end and back-end of a routine and demonstrate its operation. For video please see:

https://www.bilibili.com/video/BV11N411c7H6/

Early adopter version 3

https://www.bilibili.com/video/BV1co4y1a7Ca/

Early adopter version 2

https://www.bilibili.com/video/BV1aj411N7YB/

Smoke Beta 4

https://www.bilibili.com/video/BV1jy4y1R79h/

Early adopter version 10 download

https://gitee.com/jerryshensjf/Lotus/attach_files

Project pictures

Enter image description

Enter image description

Software screenshot

Enter image description

Enter image description

Enter image description

Screenshot of code generation

Date and time dialog box Enter image description

Single table operation

Enter image description

many to many

Enter image description

Complex layout, tree table

Enter image description

Graphical report

Enter image description

Picture function

Enter image description

Excel data export

Enter image description

PDF data export

Enter image description

Vue frontend date dialog

Enter image description

Vue independent front end, login interface

Enter image description

Vue independent front-end, inner pages

Enter image description

Source code compilation user guide

The general code generator already supports compiling the source code by itself, and I have uploaded the jar package of the front-end code generator that was missing. Everyone is supported to compile the source code by themselves.

It should be noted that my development platform is now openjdk 17 on Fedora 37. Therefore, it is best to use openjdk17 when compiling source code. The compiled war package runs on apache tomcat 9.0.

A user with jdk8 reported that the code generator war package downloaded by default cannot run on his platform. Please report if you encounter similar problems. My email is: [email protected]

Attached is the download address of openjdk 17:

https://jdk.java.net/java-se-ri/17

Notes for source code readers

The source code of the first complete version of the Infinite Code Generator, if you are interested, you can copy it:

https://gitee.com/jerryshensjf/InfinityGPGenerator_0_6_5

Related technical videos:

https://www.bilibili.com/video/BV1fX4y1u7Bn/

https://www.bilibili.com/video/BV1rv41187qY/

https://www.bilibili.com/video/BV1xv41187cA/

https://www.bilibili.com/video/BV1t64y1v7WA/

 

 

 

Guess you like

Origin www.oschina.net/news/257322