Code Monkey home page Code Monkey logo

database's People

Contributors

beakal-asefa avatar bhaskardv avatar biarca-shreya avatar ctjoreilly avatar dependabot[bot] avatar garricko avatar glenna-m avatar jmesterh avatar jpallas avatar sahithya19 avatar sandeepp87 avatar snyk-bot avatar susanweber avatar tpacht avatar wamccarty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

database's Issues

Argument Array

Are there any plans to add support to array arguments to be passed onto queries?

Nice to have: support for identity primary key columns

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.

Error creating multiple tables with foreign keys

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.

Security Alert

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.

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.