jdbc-plus是一款原生插件

Overview

jdbc-plus

jdbc-plus是一款原生插件

拥有Mybatis-Plus的逻辑构建功能,能快速构建出单表查询逻辑

Logic logic = new Logic();//构建出逻辑对象
logic.eq(key, val);//eq操作
logic.lt(key, val);//lt操作......
........

###以上是基本逻辑构造,其余返回值还是参照原生jdbc的做法,后续将陆续封装构建表模型;

如何完整的使用该插件

HikariConfig hikariConfig = new HikariConfig();
SqlWhereBuild build = new SqlWhereBuild();
//注明一下:该BusExecutor里面的事务维持唯一性,事务存储基类是BaseExecutor,里面将从连接池内提取一个连接
BusExecutor<Integer> busExecutor = new BusExecutor<>(hikariConfig, build);

busExecutor.autoCommit(true);
busExecutor.execute("SELECT COUNT(1) FROM admin", new Logic().eq("username", "admin").end());

如果是修改语句并且没用设置自动提交

HikariConfig hikariConfig = new HikariConfig();
SqlWhereBuild build = new SqlWhereBuild();
BusExecutor<Integer> busExecutor = new BusExecutor<>(hikariConfig, build);

busExecutor.execute("SELECT COUNT(1) FROM admin", new Logic().eq("username", 	"admin").end());

busExecutor.executeUpdate("UPDATE admin", new Logic().set("username", "zhangsan").set	("password", "abcde"));
//进行事务提交
busExecutor.getConnection().commit();

##感谢各位大佬支持!

支持原生sql查询

当前版本支持内容

You might also like...

Amazon AppFlow Custom JDBC Connector example

 Amazon AppFlow Custom JDBC Connector example

Amazon AppFlow Custom JDBC Connector example This project contains source code and supporting files that implements Amazon Custom Connector SDK and re

Oct 26, 2022

E library System - Java servlet, JDBC

E-Library-System-in-Java Java - E Library System Java Project based on JDBC, JSP, Java Servlet and Server Deployment System Project Aim -Develop web a

Feb 2, 2022

Online Quiz system - JDBC, JSP

Online-Quiz-System-in-Java Online Quiz system - JDBC, JSP Java Project based on JDBC, JSP, Java Servlet and Server Deployment Project Aim Develop web

Oct 14, 2022

Hi, Spring fans! In this installment, we'll look at how to build tenancy-aware JDBC applications

Multitenant JDBC You'll need to spin up two separate PostgreSQL instances. Put this script into a file called postgres.sh: #!/usr/bin/env bash NAME=${

Nov 7, 2022

esProc SPL is a scripting language for data processing, with well-designed rich library functions and powerful syntax, which can be executed in a Java program through JDBC interface and computing independently.

esProc SPL is a scripting language for data processing, with well-designed rich library functions and powerful syntax, which can be executed in a Java program through JDBC interface and computing independently.

esProc esProc is the unique name for esProc SPL package. esProc SPL is an open-source programming language for data processing, which can perform comp

Dec 27, 2022

A JDBC driver for Cloudflare's D1 product, compatible with Jetbrains tools.

A JDBC driver for Cloudflare's D1 product, compatible with Jetbrains tools.

D1 JDBC Driver A JDBC driver for Cloudflare's D1 Database product! JDBC is the technology that drives popular database tools such as Jetbrains' databa

Dec 9, 2022

Java SQL (JDBC) code generator with GUI. SQL and OOP finally united.

Java SQL (JDBC) code generator with GUI. SQL and OOP finally united.

jSQL-Gen Java SQL (JDBC) code generator with GUI. SQL and OOP finally united. Usage Install the latest release. Create a database, tables and their co

Nov 14, 2022
Comments
  • 同学,您这个项目引入了4个开源组件,存在1个漏洞,辛苦升级一下

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

    检测到 JackYgCg/jdbc-plus 一共引入了4个开源组件,存在1个漏洞

    漏洞标题:Oracle MySQL 输入验证错误漏洞
    缺陷组件:mysql:[email protected]
    漏洞编号:CVE-2021-2471
    漏洞描述:Oracle MySQL是美国甲骨文(Oracle)公司的一套开源的关系数据库管理系统。
    Oracle MySQL 的 MySQL Connectors 产品中存在输入验证错误漏洞,该漏洞允许高特权攻击者通过多种协议访问网络来破坏 MySQL 连接器。成功攻击此漏洞会导致对关键数据的未授权访问或对所有 MySQL 连接器可访问数据的完全访问,以及导致 MySQL 连接器挂起或频繁重复崩溃。
    影响范围:(∞, 8.0.27)
    最小修复版本:8.0.27
    缺陷组件引入路径:org.jdbc.plus:[email protected]>mysql:[email protected]
    

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

    opened by ghost 2
Releases(1.0.0)
Owner
ycsky
大道至简,很多东西本来都是殊途同归😎 干翻这魔幻的世界。
ycsky
E library System - Java servlet, JDBC

E-Library-System-in-Java Java - E Library System Java Project based on JDBC, JSP, Java Servlet and Server Deployment System Project Aim -Develop web a

Muhammad Asad 5 Feb 2, 2022
Java SQL (JDBC) code generator with GUI. SQL and OOP finally united.

jSQL-Gen Java SQL (JDBC) code generator with GUI. SQL and OOP finally united. Usage Install the latest release. Create a database, tables and their co

Osiris-Team 11 Nov 14, 2022
光 HikariCP・A solid, high-performance, JDBC connection pool at last.

HikariCP It's Faster.Hi·ka·ri [hi·ka·'lē] (Origin: Japanese): light; ray. Fast, simple, reliable. HikariCP is a "zero-overhead" production ready JDBC

Brett Wooldridge 17.7k Jan 1, 2023
Vibur DBCP - concurrent and dynamic JDBC connection pool

Vibur DBCP is concurrent, fast, and fully-featured JDBC connection pool, which provides advanced performance monitoring capabilities, including slow S

Vibur 94 Apr 20, 2022
JDBC driver for ClickHouse

This is a basic and restricted implementation of jdbc driver for ClickHouse. It has support of a minimal subset of features to be usable.

ClickHouse 1.1k Jan 1, 2023
Multi-DBMS SQL Benchmarking Framework via JDBC

BenchBase BenchBase (formerly OLTPBench) is a Multi-DBMS SQL Benchmarking Framework via JDBC. Table of Contents Quickstart Description Usage Guide Con

CMU Database Group 213 Dec 29, 2022
Provides many useful CRUD, Pagination, Sorting operations with Thread-safe Singleton support through the native JDBC API.

BangMapleJDBCRepository Inspired by the JpaRepository of Spring framework which also provides many capabilities for the CRUD, Pagination and Sorting o

Ngô Nguyên Bằng 5 Apr 7, 2022
Spring Boot JdbcTemplate example with SQL Server: CRUD Rest API using Spring Data JDBC, Spring Web MVC

Spring Boot JdbcTemplate example with SQL Server: Build CRUD Rest API Build a Spring Boot CRUD Rest API example that uses Spring Data Jdbc to make CRU

null 7 Dec 20, 2022
Core ORMLite functionality that provides a lite Java ORM in conjunction with ormlite-jdbc or ormlite-android

ORMLite Core This package provides the core functionality for the JDBC and Android packages. Users that are connecting to SQL databases via JDBC shoul

Gray 547 Dec 25, 2022
SPRING MySQL Database Connection using JDBC STEPS

SPRING-MySQL-Database-Connection-using-JDBC-STEPS SPRING MySQL Database Connection using JDBC STEPS Step1: Create maven project Group id: com.cdac Art

Dnyaneshwar Madhewad 1 Jan 27, 2022