stal-crystal alternatives and similar shards
Based on the "ORM/ODM Extensions" category.
Alternatively, view stal-crystal alternatives based on common mentions on social networks and blogs.
9.8 4.4 stal-crystal VS granite-ormORM Model with Adapters for mysql, pg, sqlite in the Crystal Language.
9.4 8.2 stal-crystal VS avramA Crystal database wrapper for reading, writing, and migrating Postgres databases.
Do you think we are missing an alternative of stal-crystal or a related project?
Set algebra solver for Redis
Stal receives an array with an s-expression composed of commands
and key names and resolves the set operations in Redis.
Meet us on IRC: [#lesscode](irc://chat.freenode.net/#lesscode) on freenode.net.
Install Redis. On most platforms it's as easy as grabbing
the sources, running make and then putting the
in the PATH.
Once you have it installed, you can execute
redis-server and it
will run on
localhost:6379 by default. Check the
file that comes with the sources if you want to change some settings.
Stal requires a Resp compatible client. To make things
resp is listed as a runtime dependency so the examples
in this document will work.
require "stal" # Connect the client to the default host resp = Resp.new("redis://localhost:6379") # Use the Redis client to populate some sets resp.call("SADD", "foo", "a", "b", "c") resp.call("SADD", "bar", "b", "c", "d") resp.call("SADD", "baz", "c", "d", "e") resp.call("SADD", "qux", "x", "y", "z")
Now we can perform some set operations with
expr = ["SUNION", "qux", ["SDIFF", ["SINTER", "foo", "bar"], "baz"]] Stal.solve(resp, expr) #=> ["b", "x", "y", "z"]
Stal translates the internal calls to
perform the underlying operations, and it takes care of generating
and deleting any temporary keys.
For more information, refer to the repository of the Stal script.
Add this to your application's
dependencies: stal: github: soveran/stal-crystal branch: master