susom / database Goto Github PK
View Code? Open in Web Editor NEWRelational database access made simpler and safer
License: Apache License 2.0
Relational database access made simpler and safer
License: Apache License 2.0
Are there any plans to add support to array arguments to be passed onto queries?
It would be very great to add this nice project to vertx-awesome page!
would you make a blog post for vertx.io that introduces this new project ?
Looks like this repository has been highlighted as needing an upgrade to fix a security vulnerability in com.fasterxml.jackson.core:jackson-databind. We need to go to version 2.9.9.2 or later.
DebugSql.logMiddle
calls printSql
on query strings that have already had parameter substitution performed. If those strings had escaped parameter indicators (??
or ::
), printSql
sees them unescaped and thinks there are missing parameters.
Using PK sequences is error prone, as nothing prevents the user from accidentally specifying the wrong sequence in a call to argPkSeq. Identity columns are supported by almost all of the databases.
On the insert side, the API might be insertReturningPkDefault(columnName)
. For Schema, maybe have primaryKeyDefaultIdentity
or just primaryKeyIdentity
.
Not sure if this is a bug or if I'm calling Schema() incorrectly:
new Schema().addTable("raw_log")
.addColumn("upload_uuid").asString(64).primaryKey()
.table().addColumn("subject_uuid").asString(64)
.table().addColumn("study_uuid").asString(64)
.schema().addTable("payload")
.addColumn("upload_uuid").asString(64).foreignKey("upload_uuid").references("raw_log")
.table().addColumn("size").asInteger()
.table().addColumn("key").asString(1024)
.schema().addTable("kv")
.addColumn("upload_uuid").asString(64).foreignKey("upload_uuid").references("raw_log")
.table().addColumn("size").asInteger()
.table().addColumn("key").asString(1024)
.schema().addTable("key_value_pairs")
.addColumn("upload_uuid").asString(64).foreignKey("upload_uuid").references("raw_log")
.table().addColumn("file").asString(1024)
.schema().execute(db);
Fails with:
Caused by: org.postgresql.util.PSQLException: ERROR: relation "upload_uuid_ix" already exists.
Worked around this issue for now by adding .withoutForeignKeyIndexing()
to the last two tables.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.