Code Monkey home page Code Monkey logo

cactoos-jdbc's People

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

Watchers

 avatar  avatar  avatar  avatar

cactoos-jdbc's Issues

Adapter package, classe names

As we already have discussed before, I don't know if these names, like XxxToYyy are good.
Indeed, I'm not sure about them yet. But, today, I believe XxxAsYyy or XxxAdapterForYyy could be better names.

What do you think?

ANTLR warning

ANTLR produces the following warning:

ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7

Retrieve the data as JSON

We should create ResultSetAsJson which will implement Scalar and returns properly formatted JSON.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

maven
pom.xml
  • com.jcabi:parent 0.67.0
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.apache.maven.plugins:maven-surefire-plugin 3.2.5
  • org.apache.maven.plugins:maven-resources-plugin 3.3.1
  • org.cactoos:cactoos 0.55.0
  • org.slf4j:slf4j-api 2.0.13
  • org.slf4j:slf4j-reload4j 2.0.13
  • org.llorllale:cactoos-matchers 0.25
  • com.h2database:h2 2.2.224
  • com.mysql:mysql-connector-j 8.4.0
  • org.postgresql:postgresql 42.7.3
  • com.jcabi:jcabi-xml 0.29.0
  • com.jcabi:jcabi-matchers 1.7.0
  • org.testcontainers:testcontainers 1.19.7
  • org.testcontainers:mysql 1.19.7
  • org.testcontainers:jdbc 1.19.7
  • org.testcontainers:postgresql 1.19.7
  • junit:junit 4.13.2
  • org.hamcrest:hamcrest-core 2.2
  • org.junit.jupiter:junit-jupiter 5.10.2
  • org.junit.jupiter:junit-jupiter-api 5.10.2
  • org.junit.vintage:junit-vintage-engine 5.10.2
  • org.testcontainers:testcontainers-bom 1.19.7
  • com.qulice:qulice-maven-plugin 0.22.2
  • org.jacoco:jacoco-maven-plugin 0.8.12

  • Check this box to trigger a request for Renovate to run again on this repository

Regex in ParsedSql

In ParsedSql class you have the following pattern
Pattern find = Pattern.compile("(?<!')(:[\w])(?!')");
Then you use substring(1) from matched strings , maybe it would be better to use this pattern instead
Pattern.compile("(?<!'):([\w]
)(?!')")
And then
while (matcher.find()) {
fields.add(matcher.group(1));
}

Cached decorator (FakeConnection class in EO Vol 2)

In Elegant Object Vol. 2, section 6.5.6 Too many round trips, Yegor discuss about the problem of many round trips to RDBMS, to fetch data from each SQL Speaking Object (SSO). A solution to this problem is use a FakeConnection class (here it will be called Cached) that will cache all data of each SSO. But to implement a caching decorator to JDBC API it isn't trivial. We need implement a SQL parser and analyser to check each SQL statement to perform correctly (store or retrieve) data.
The API to be used by the developer should be something like:

public final class Cached implements Session {
 ...
}

final Session session = new Cached(
  new SessionAuth(
    new SourceH2l("test"),
    "foo",
    "bar")
  )
);

Project doesn't compile

Travis build is currently failing with:

[WARNING] /home/travis/build/fabriciofx/cactoos-jdbc/src/test/java/com/github/fabriciofx/cactoos/jdbc/server/ServerMysqlTest.java:[42,20] auto-closeable resource com.github.fabriciofx.cactoos.jdbc.Server has a member method close() that could throw InterruptedException

This is a bug in the JDK.

... because void close() throws Exception means that InterruptedException (a child of Exception) "could" be thrown... which is the signature of AutoCloseable.

Taken from a (comment)

So the way I see it, a temporary solution is to add a default method to Server with a more specific exception type.

Change List<Contact> to Contacts?

@amihaiemil I've read your post An Extension To TellDontAsk and I liked very much. Congratulations! So, based on it, I'm thinking change the SqlContacts code here to return a Contacts instead of a List<Contacts>. To achieve this, I must implement a FilteredContacts, as you've suggested on post. So, my doubt is: how do you think should be the constructor signature? FilteredContacts(final List<Contacts> found, final String name)?

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.