File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
firebase-dataconnect/demo
src/main/kotlin/com/google/firebase/dataconnect/minimaldemo Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ org.gradle.jvmargs=-Xmx2g
88
99org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
1010org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn =true
11+
12+ dataConnect.minimalApp.dataConnectEmulatorExecutable =/google/src/cloud/dconeybe/readme_codegen/google3/blaze-bin/third_party/firebase/dataconnect/emulator/cli/cli
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package com.google.firebase.dataconnect.minimaldemo
17+
18+ import com.google.firebase.dataconnect.minimaldemo.connector.*
19+
20+ data object values {
21+ val string = " "
22+ val int = 42
23+ val int64 = 42L
24+ val float = 1.1
25+ }
26+
27+
28+ suspend fun foo () {
29+ val connector = Ctry3q3tp6kzxConnector .instance
30+ val queryResult = connector.getItemsByValues.execute() {
31+ string = values.string
32+ this .int = int
33+ this .int64 = int64
34+ this .float = float
35+ this .boolean = boolean
36+ this .date = date
37+ this .timestamp = timestamp
38+ this .any = any
39+ }
40+ println (" GetItemsByValues query returned: ${queryResult.data} " )
41+ }
You can’t perform that action at this time.
0 commit comments