Skip to content

Commit d63dcb6

Browse files
authored
docs: make it clear ddl_statements is a list in docs (#59)
The ddl_statements fields expects a list of strings, not a string. This aims to make that more clear in the documentation.
1 parent 1d49766 commit d63dcb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/database-usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create a :class:`~google.cloud.spanner.database.Database` object:
2929
3030
database = instance.database(database_id, ddl_statements)
3131
32-
- ``ddl_statements`` is a string containing DDL for the new database.
32+
- ``ddl_statements`` is a list of strings containing DDL for the new database.
3333

3434
You can also use :meth:`Instance.database` to create a local wrapper for
3535
a database that has already been created:
@@ -68,7 +68,7 @@ via its :meth:`~google.cloud.spanner.database.Database.update_ddl` method:
6868
6969
operation = database.update_ddl(ddl_statements, operation_id)
7070
71-
- ``ddl_statements`` is a string containing DDL to be applied to
71+
- ``ddl_statements`` is a list of strings containing DDL to be applied to
7272
the database.
7373

7474
- ``operation_id`` is a string ID for the long-running operation.

0 commit comments

Comments
 (0)