samples

command module
v0.0.0-...-e2d27dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Spanner GORM Sample

This directory contains a sample application for how to use GORM with Cloud Spanner. The sample can be executed as a standalone application without the need for any prior setup, other than that Docker must be installed on your system. The sample will automatically:

  1. Download and start the Spanner Emulator in a Docker container.
  2. Create a sample database and execute the sample on the sample database.
  3. Shutdown the Docker container that is running the emulator.

Running the sample is done by executing the following command:

go run run_sample.go

Prerequisites

Your system must have Docker installed for these samples to be executed, as each sample will automatically start the Spanner Emulator in a Docker container.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL