The previous releases of RethinkDB allowed querying indexes as follows:
// Three ways to get the user with primary key 5
r.table('users').get(5)
r.table('users').getAll(5)
r.table('users').getAll(5, {index: 'id'})| . |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Properties; | |
| import org.apache.avro.io.BinaryDecoder; | |
| import org.apache.avro.io.BinaryEncoder; | |
| import org.apache.avro.io.DecoderFactory; |
| #!/bin/bash | |
| export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -d "username=admin" \ | |
| -d 'password=admin' \ | |
| -d 'grant_type=password' \ | |
| -d 'client_id=admin-cli' | jq -r '.access_token') | |
| curl -X GET 'http://localhost:8080/auth/admin/realms' \ |
| $ tmux attach | |
| protocol version mismatch (client 7, server 6) | |
| $ pgrep tmux | |
| 3429 | |
| $ /proc/3429/exe attach |
| /** | |
| * MIT License | |
| * | |
| * Copyright (c) 2016 Richard Adams (https://github.com/enriched) | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |
| import DS from 'ember-data'; | |
| export default DS.JSONAPISerializer.extend({ | |
| // This returns the key as-is to the model, instead of converting between a dasherized JSONAPI and a camelCased JS model. | |
| keyForAttribute(key) { | |
| return key; | |
| }, | |
| keyForRelationship(key) { | |
| return key; |
| #!/bin/bash | |
| set -e | |
| [[ "$(git symbolic-ref --short HEAD)" == "master" ]] || exit 0 | |
| msg() { | |
| echo "[1;34m> [1;32m$@[0m" | |
| } | |
| dir="$(pwd)" | |
| tmp="$(mktemp -d)" |
| license: gpl-3.0 |