screw 一颗螺丝钉的使命

screw介绍

对于screw,我们来看看作者是怎么定义它的。

关于名字,想一个太难了,好在我这个聪明的小脑瓜灵感一现,怎么突出它的小,但重要呢?从小就学过雷锋的螺丝钉精神,摘自雷锋日记:虽然是细小的螺丝钉,是个细微的小齿轮,然而如果缺了它,那整个的机器就无法运转了,慢说是缺了它,即使是一枚小螺丝钉没拧紧,一个小齿轮略有破损,也要使机器的运转发生故障的…,感觉自己写的这个工具,很有这意味,虽然很小、但是开发中缺了它还不行,于是便起名为screw(螺丝钉)。

screw的特点

简洁、轻量、设计良好
多数据库支持
多种格式文档
灵活扩展
支持自定义模板

数据库支持

MySQL
MariaDB
TIDB
Oracle
SqlServer
PostgreSQL
Cache DB(2016)
H2 (开发中)
DB2 (开发中)
HSQL (开发中)
SQLite(开发中)
瀚高(开发中)
达梦 (开发中)
虚谷 (开发中)
人大金仓(开发中)
文档生成支持
html
word
markdown

screw的简单使用

通过maven插件

<build>
        <plugins>
            <plugin>
                <groupId>cn.smallbun.screwgroupId>
                <artifactId>screw-maven-pluginartifactId>
                <version>1.0.5version>
                <dependencies>
                    
                    <dependency>
                        <groupId>com.zaxxergroupId>
                        <artifactId>HikariCPartifactId>
                        <version>3.4.5version>
                    dependency>
                    
                    <dependency>
                        <groupId>mysqlgroupId>
                        <artifactId>mysql-connector-javaartifactId>
                        <version>8.0.20version>
                    dependency>
                dependencies>
                <configuration>
                    
                    <username>usernameusername>
                    
                    <password>passwordpassword>
                    
                    <driverClassName>com.mysql.cj.jdbc.DriverdriverClassName>
                    
                    <jdbcUrl>jdbc:mysql://(数据库ip):3306/(数据库名)jdbcUrl>
                    
                    <fileType>WORD/MD/HTML(三选一)fileType>
                    
                    <openOutputDir>trueopenOutputDir>
                    
                    <produceType>freemarkerproduceType>
                    
                    <fileName>测试文档名称fileName>
                    
                    <description>数据库文档生成description>
                    
                    <version>${project.version}version>
                    
                    <title>数据库文档title>
                configuration>
                <executions>
                    <execution>
                        <phase>compilephase>
                        <goals>
                            <goal>rungoal>
                        goals>
                    execution>
                executions>
            plugin>
        plugins>
    build>

插件执行

screw 一颗螺丝钉的使命_第1张图片

生成完成后自动跳转到文件目录
screw 一颗螺丝钉的使命_第2张图片

如需自定义格式等复杂功能可参考链接
screw

你可能感兴趣的:(screw 一颗螺丝钉的使命)