Skip to content

Latest commit

 

History

History

knex

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PGAdapter Spanner and Knex.js

PGAdapter has experimental support for Knex.js with the standard Node.js pg driver. This sample application shows how to connect to PGAdapter with Knex, and how to execute queries and transactions on Cloud Spanner.

The sample uses the Cloud Spanner emulator. You can run the sample on the emulator with this command:

npm start

PGAdapter and the emulator are started in a Docker test container by the sample application. Docker is therefore required to be installed on your system to run this sample.