Sha256: 7d9f33a7070f6baebec403d5dbe30d8adb18ee934f539e94341afc5e3d9d19e6

Contents?: true

Size: 637 Bytes

Versions: 19

Compression:

Stored size: 637 Bytes

Contents

# Sample - Query Hints

This example shows how to use query hints Spanner ActiveRecord adapter. Statement hints and
table hints can be specified using the optimizer_hints method. Join hints must be specified
in a join string.

See https://cloud.google.com/spanner/docs/query-syntax#sql_syntax for more information on
the supported query hints.

## Running the Sample

The sample will automatically start a Spanner Emulator in a docker container and execute the sample
against that emulator. The emulator will automatically be stopped when the application finishes.

Run the application with the command

```bash
bundle exec rake run
```

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.6.3 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.6.2 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.6.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.6.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.5.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.5.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.4.4 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.4.3 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.4.2 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.4.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.4.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.3.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.2.2 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.2.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.2.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.1.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.0.1 examples/snippets/hints/README.md
activerecord-spanner-adapter-1.0.0 examples/snippets/hints/README.md
activerecord-spanner-adapter-0.7.0 examples/snippets/hints/README.md