Code Monkey home page Code Monkey logo

jredisql's People

Contributors

siscia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jredisql's Issues

ERR unknown command 'REDISQL.CREATE_DB'

i clone your code , but i can not run it correct.

redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'REDISQL.CREATE_DB'

	at redis.clients.jedis.Protocol.processError(Protocol.java:131)
	at redis.clients.jedis.Protocol.process(Protocol.java:165)
	at redis.clients.jedis.Protocol.read(Protocol.java:219)
	at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:309)
	at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:255)
	at redis.clients.jedis.Connection.getBulkReply(Connection.java:245)
	at com.redbeardlab.redisql.client.RediSQLClient.ok_returns(RediSQLClient.java:89)
	at com.redbeardlab.redisql.client.RediSQLClient.create_db(RediSQLClient.java:98)
	at com.redbeardlab.redisql.client.RediSQLClientTest.creatingDatabaseWorks(RediSQLClientTest.java:30)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:532)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)

i use the redis-cli is all ok

image

JDBC java.sql.ResultSet wrapper

It would be really great if there was some kind of wrapper class that makes the data returned from redis appear to be java.sql.ResultSet - then this could be closer to a drop-in replacement for a traditional SQL database connection.

So instead of calling get(1) get(2) as in the example, you would iterate over ResultSet objects, with functions delegating to the underlying redis interface. Basically RedisResultSetDecorator.

Example for REDISQL.QUERY

@siscia can you give me an example for how to query from a table. I get error like

(error) ERR unknown command REDISQL.QUERY, with args beginning with: SELECT * FROM foo,

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.