snowflakedb / pdo_snowflake

PHP PDO driver for snowflake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SNOW-1214750: Clarify connection documentation

nbennett25 opened this issue · comments

What is the current behavior?

Documentation shows bare minimum instructions on how to connect:

$dbh = new \PDO("snowflake:account=$account;", $user, $password);
$sth = $dbh->query("select 1234");

This works as expected, but is not a typical use case.

What is the desired behavior?

Add details to documentation to specify other attributes, like warehouse and schema:

$dbh = new \PDO("snowflake:account=$account;warehouse=[WAREHOUSE_NAME];database=[DATABASE_NAME];schema=[SCHEMA_NAME]", $user, $password);
$sth = $dbh->query("select * from [MY_TABLE]");

How would this improve pdo_snowflake?

Save guess work on connection details

hi and thank you for this suggestion! raised #373 to add the suggested bits into the connection example

PR merged, docs updated. Again thank you for the suggestion!