cchantep / acolyte Goto Github PK
View Code? Open in Web Editor NEW:tiger: Mockup/testing JDBC & MongoDB driver (or Chmeee's son on the Ringworld).
Home Page: http://acolyte.eu.org/
License: GNU Lesser General Public License v2.1
:tiger: Mockup/testing JDBC & MongoDB driver (or Chmeee's son on the Ringworld).
Home Page: http://acolyte.eu.org/
License: GNU Lesser General Public License v2.1
Expert editor in studio GUI, to map column using raw CSV editor.
getRow, isFirst, isBeforeFirst, isAfterLast, isLast
Extension API to be able to load RowList from fixtures files.
Turn RowList as abstract + getColumnClasses . Sub-classes up to RowList of Row22, with appropriate getColumnClasses .
1 actor system / n connection ; passing actorRef to MongoConnection
case binding @ ~(..., ...) => ...
In relative
and absolute
I have a some code that perform two select statement and my test is suppose to return different results. How do I register multiple StatementHandler for one connection id?
The only way I found to do that is to return a different result base on a counter which smell bad.
Could be something like new SequentialHandler().next(query, updateHandler, queryHandler).next(... ??
Hi,
i can not build playframework because acolyte is not in central:
sbt.ResolveException: unresolved dependency: acolyte#acolyte-scala_2.10;1.0.10: not found
can you publish artefacts to central?
Would it be possible to add the sources in the repository? It's usefull for learning the framework.
PreparedStatement.setParam(...)
The RowResultSet hashCode contains last field which is changed when iterating through a cursor.
During a transaction C3P0 stores resultset in a HashSet and when the transaction finishes, then it removes it from the set. As hashCode changes, the resultset can not be removed from the HashSet any more.
Would it be possible to remove last field from hashCode implementation?
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global
import reactivemongo.api._
import reactivemongo.bson._
import acolyte.reactivemongo._
import AcolyteDSL._
def result = withFlatDriver { implicit drv =>
AcolyteDSL.withFlatQueryHandler({
case req => sys.error(s"----------------------- Unexpected : $req")
}) { con =>
con.database("db").flatMap { db =>
val x = db("coll").findAndUpdate(
BSONDocument("id" -> 1),
BSONDocument("$set" -> BSONDocument("lorem" -> "ipsum"))).map(_ => {})
x
}
}
}
scala.concurrent.Await.result(result, 5.seconds)
Separate JDBC and core classes, move core classes to new core module (outside of jdbc-driver
).
The NPE's are occuring because MongoDBSystem fields were not properly overridden in the Acolyte Actor class.
(Will be pushing a PR with a fix very soon)
After #25
For methods relative
, absolute
, first
and last
.
acolyte-core
to jdbc-driver
acolyte-scala
to jdbc-scala
Hi,
Hope you had another great day.
I'm using acolyte to intercept calls to my SQL driver, wrap them, execute remotely and return results back through JDBC.
Reasoning: implementing my own ResultSet and Connection and other JDBC classes is way to painful.
It was non-trivial to write it as I need to be able to convert matrix of data into QueryResult. I achieved it with: my own Update- and QueryHandler and my own RowList implementations.
Main reason for my own implementations: I can not reuse deprecated RowList.append(R row), I need to use one of the specific classes, but I do not know in advance number of and type of columns in the result as I'm writing generic wrapper.
Can I have generic implementation for RowList that I can reuse that allows me to use Iterator for row data generation or at least use append(R row) to add data?
Thanks for the consideration.
Default to null string is configured
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.