Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['generated'])
)
;

Expand Down
8 changes: 7 additions & 1 deletion spanner/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"require": {
"google/cloud-spanner": "^1.74"
"google/cloud-spanner": "^1.97"
},
"autoload": {
"psr-4": {
"GPBMetadata\\": "generated/GPBMetadata",
"Testing\\": "generated/Testing"
}
}
}
14 changes: 14 additions & 0 deletions spanner/data/user.pb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

�
data/user.proto testing.data"�
User
id (Rid
name ( Rname
active (Ractive4
address ( 2.testing.data.User.AddressRaddress3
Address
city ( Rcity
state ( Rstate"H
Book
title ( Rtitle*
author ( 2.testing.data.UserRauthorbproto3
42 changes: 42 additions & 0 deletions spanner/data/user.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package testing.data;

message User {

int64 id = 1;

string name = 2;

bool active = 3;

message Address {

string city = 1;

string state = 2;
}

Address address = 4;
}


message Book {
string title = 1;

User author = 2;
}
25 changes: 25 additions & 0 deletions spanner/generated/GPBMetadata/Data/User.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions spanner/generated/Testing/Data/Book.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

150 changes: 150 additions & 0 deletions spanner/generated/Testing/Data/User.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading