Coder Social home page Coder Social logo

sqlibrary's Introduction

SQLibrary

Version Code-Size Repo-Size License Language Last-Commit

轻量级ORM库,Java对象到关系数据库数据的映射,支持Java8及以上版本

功能

  • 实用性:可以在任何Java项目上运行,不局限于单一框架内
  • 灵活性:支持多种数据库,如MySQLSQLiteH2SQL关系型数据库
  • 兼容性:支持Java8及以上版本,兼容Java11Java18等最新版本
  • 便捷性:默认提供CRUD操作,满足大部分场景的需求
  • 扩展性:支持自定义SQL语句,不局限在默认的CRUD
  • 易用性:API简单易用,无需学习复杂的使用方法
  • 可读性:支持链式调用,代码简洁易读
  • 安全性:支持SQL注入防护,防止恶意注入
  • 可靠性:支持事务操作,保证数据的完整性
  • 轻量性:非常小(包括JavaDoc大约在3k行左右)

示例代码

您可以 点击这里 查看部分代码演示 。

依赖方式

已发布到Maven中心仓库,无需额外添加repository信息

Maven依赖
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.2.3</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <relocations>
                    <relocation>
                        <pattern>me.huanmeng.opensource.bukkit.gui</pattern>
                        <!-- 将 'com.yourpackage' 替换为你的包名 -->
                        <shadedPattern>com.yourpackage.gui</shadedPattern>
                    </relocation>
                </relocations>
            </configuration>
        </plugin>
    </plugins>
</build>

<dependencies>
    <dependency>
        <groupId>com.huanmeng-qwq</groupId>
        <artifactId>SQLibrary</artifactId>
        <version>2.2.9</version>
    </dependency>
</dependencies>
Gradle依赖
plugins {
    id 'com.github.johnrengelman.shadow' version '8.1.1'
}

repositories {
    mavenCentral()
}

dependencies {
    api "com.huanmeng-qwq:SQLibrary:2.2.9"
}

shadowJar {
    // 将 'com.yourpackage' 替换为你的包名
    relocate 'me.huanmeng.opensource.bukkit.gui', 'com.yourpackage.huanemng.sqlibrary'
}

支持

Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.

sqlibrary's People

Contributors

carmjos avatar dependabot[bot] avatar huanmeng-qwq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mantouqaq

sqlibrary's Issues

同学,您这个项目引入了9个开源组件,存在2个漏洞,辛苦升级一下

检测到 huanmeng-qwq/SQLibrary 一共引入了9个开源组件,存在2个漏洞

漏洞标题:Google Guava无限内存分配漏洞
缺陷组件:com.google.guava:[email protected]
漏洞编号:CVE-2018-10237
漏洞描述:Google Guava是美国谷歌(Google)公司开发的一款包括图形库、函数类型、I/O和字符串处理等的Java核心库。

Google Guava 11.0版本至24.1.1版本(不包括24.1.1版本)中存在安全漏洞,该漏洞源于程序未能正确的检测客户端发送的内容及数据大小是否合理。远程攻击者可利用该漏洞造成拒绝服务。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2018-10064
影响范围:[11.0, 24.1.1-android)
最小修复版本:24.1.1-android
缺陷组件引入路径:me.huanmeng:[email protected]>com.google.guava:[email protected]

另外还有2个漏洞,详细报告:https://mofeisec.com/jr?p=a9b024

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.