Skip to content

Instantly share code, notes, and snippets.

+----------------------------------------------------------------------+----------------------------------------------------------------------+
| tx1 | tx2 |
+----------------------------------------------------------------------+----------------------------------------------------------------------+
| spanner> BEGIN; | |
| Query OK, 0 rows affected (0.05 sec) | |
| | |
| | spanner> BEGIN; |
|
+---------------------------------------------------+---------------------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------+---------------------------------------------------------------+
| spanner> BEGIN RO; | |
| Query OK, 0 rows affected (0.00 sec) | |
| | |
| | spanner> BEGIN; |
| | Query OK, 0 rows affected (0.26 sec) |
| |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+
| spanner> BEGIN RO; | |
| Query OK, 0 rows affected (0.00 sec) | |
| | |
| | span
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------------------------+-------------------------------------------------------------------------------------+
| spanner> BEGIN; | |
| Query OK, 0 rows affected (0.03 sec) | |
| | |
| | span
+---------------------------------------------------+---------------------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------+---------------------------------------------------------------+
| spanner> BEGIN RO; | |
| Query OK, 0 rows affected (0.00 sec) | |
| | |
| | spanner> BEGIN; |
| | Query OK, 0 rows affected (0.02 sec) |
| |
+---------------------------------------------------+---------------------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------+---------------------------------------------------------------+
| spanner> BEGIN; | |
| Query OK, 0 rows affected (0.02 sec) | |
| | |
| | spanner> BEGIN; |
| | Query OK, 0 rows affected (0.91 sec) |
| |
+------------------------------------------------------+------------------------------------------------------+
| tx1 | tx2 |
+------------------------------------------------------+------------------------------------------------------+
| spanner> BEGIN; | |
| Query OK, 0 rows affected (0.01 sec) | |
| | |
| | spanner> BEGIN; |
| | Query OK, 0 rows affected (0.05 sec) |
| | |
| spanner> SELEC
+---------------------------------------------------------------+---------------------------------------------------+
| tx1 | tx2 |
+---------------------------------------------------------------+---------------------------------------------------+
| spanner> BEGIN; | |
| Query OK, 0 rows affected (1.17 sec) | |
| | |
| | spanner> BEGIN; |
| | Query OK, 0 rows affected (0.06 sec) |
| |
@yfuruyama
yfuruyama / token_info.go
Created October 27, 2018 14:26
Show token info
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
)
@yfuruyama
yfuruyama / get_adc_token_info.go
Created October 27, 2018 13:27
Get information about current Application Default Credentials
package main
import (
"context"
"fmt"
"io/ioutil"
"log"
"net/http"
"golang.org/x/oauth2/google"