This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spanner = new Spanner({ projectId: 'test-project' }); | |
const instance = spanner.instance('test-instance'); | |
const database = instance.database('test-db'); | |
await database.updateSchema(` | |
CREATE TABLE TestTable ( | |
Id INT64 NOT NULL, | |
Float32Col FLOAT32, | |
) PRIMARY KEY (Id) | |
`); | |
await database.table('TestTable').upsert({ Id: 1, Float32Col: 3.14 }); |