We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72096f5 commit c477cc2Copy full SHA for c477cc2
README.rst
@@ -74,10 +74,8 @@ Format
74
},
75
}
76
77
-Example
78
-~~~~~~~
79
-
80
-For example:
+Database configurations
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81
82
.. code:: python
83
@@ -90,6 +88,25 @@ For example:
90
88
91
89
92
+Execute a query
93
+
94
+.. code:: python
95
96
+ from google.cloud.spanner_dbapi import connect
97
98
+ connection = connect("instance-id", "database-id")
99
+ cursor = connection.cursor()
100
101
+ cursor.execute(
102
+ "SELECT *"
103
+ "FROM Singers"
104
+ "WHERE SingerId = 15"
105
+ )
106
107
+ results = cur.fetchall()
108
109
110
Limitations
111
-----------
112
0 commit comments