| License |
License |
|---|---|
| GroupId | GroupIdio.github.totoro-dev |
| ArtifactId | ArtifactIdclap-sql |
| Last Version | Last Version1.0.1 |
| Release Date | Release Date |
| Type | Typejar |
| Description |
DescriptionClapSQL
ClapSQL:
C : Client(客户端场景);
L : Light(轻量级);
A : Almighty(全能,SQL的所有操作、自带缓存+批处理等);
P : Performance(性能,自带分表,封装或解析可以不用反射)。
ClapSQL是一个适用于客户端的即轻量又全能且高效的数据库。
1. 不需要写任何的SQL语句,而是以写代码的方式处理数据库。
也许之后会考虑用APT+注解的方式,但不一定比写函数来的直观。
2. 可以通过给每个表设置一个关键字段,从而达到分表存储的效果,
分表的原理为哈希映射,使用的时候这个分表的过程是不需要任何配置的。
3. 可以使用批处理的方式异步执行命令,并且可以指定在异步执行完命令后执行其它逻辑。
批处理就是一次性执行多个数据库命令,减少IO。
4. 可以自定义表中存入一行数据的封装方式和取出一行数据的解析方式。
如果这个过程你不用json封装、解析对象的话,可以减少很多反射带来的性能影响。
而且一般表结构不复杂的情况下,自己决定怎么组装数据是方便且提高性能的。
5. 权限管理。
6. 表中数据的加密。
|
| Filename | Size |
|---|---|
| clap-sql-1.0.1.pom | |
| clap-sql-1.0.1.jar | 36 KB |
| clap-sql-1.0.1-sources.jar | 21 KB |
| clap-sql-1.0.1-javadoc.jar | 118 KB |
| Browse |
<!-- https://jarcasting.com/artifacts/io.github.totoro-dev/clap-sql/ -->
<dependency>
<groupId>io.github.totoro-dev</groupId>
<artifactId>clap-sql</artifactId>
<version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.totoro-dev/clap-sql/
implementation 'io.github.totoro-dev:clap-sql:1.0.1'
// https://jarcasting.com/artifacts/io.github.totoro-dev/clap-sql/
implementation ("io.github.totoro-dev:clap-sql:1.0.1")
'io.github.totoro-dev:clap-sql:jar:1.0.1'
<dependency org="io.github.totoro-dev" name="clap-sql" rev="1.0.1">
<artifact name="clap-sql" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.totoro-dev', module='clap-sql', version='1.0.1')
)
libraryDependencies += "io.github.totoro-dev" % "clap-sql" % "1.0.1"
[io.github.totoro-dev/clap-sql "1.0.1"]
| Group / Artifact | Type | Version |
|---|---|---|
| com.google.code.gson : gson | jar | 2.8.6 |