Sha256: 6135db8a83469540fe4ea87094806ebfdf5e7f40f306df2db10ac51c03b36077

Contents?: true

Size: 643 Bytes

Versions: 22

Compression:

Stored size: 643 Bytes

Contents

# Copyright 2021 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

require "google/cloud/spanner"

spanner = Google::Cloud::Spanner.new project: "test-project", emulator_host: "localhost:9010"
job = spanner.create_instance "test-instance",
                              name: "Test Instance",
                              config: "emulator-config",
                              nodes: 1
job.wait_until_done!

instance = spanner.instance "test-instance"
job = instance.create_database "testdb", statements: []
job.wait_until_done!

Version data entries

22 entries across 22 versions & 1 rubygems

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