Download the PHP package spyck/snowflake without Composer
On this page you can find all versions of the php package spyck/snowflake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package snowflake
Snowflake Api
Snowflake API connector in PHP
Requirements
PHP ^8.0
Installation
Install it using Composer:
1. Generate own public and private keys:
2. Set the public key in Snowflake for the user:
Set the public key for the user who will connect with the Snowflake API. Make sure that you put your own public key (rsa_key.pub) in a single line.
3. Get public key from Snowflake:
Run the describe command for the user to get the RSA_PUBLIC_KEY_FP.
Example usage
Optional configuration:
To execute the statement:
The statement will be executed and the is returned.
To get the results of the statement:
object will be returned with is set to false or true. If is false, the results are not ready yet. Try, for example, every 10 minutes, with a queue service, until the statement is executed and the will be true. When is true the results are ready. If object is returned with set to false, all fields are NULL, except . Properties from the object:
Because the results can be large, Snowflake will split the data into pages (partitions). With these methods you can paginate through the results:
To cancel the statement:
is thrown when something goes wrong or when a required configuration is missing.
More information can be found at https://docs.snowflake.com/en/developer-guide/sql-api/reference.html.
All versions of snowflake with dependencies
web-token/jwt-core Version ^3
web-token/jwt-key-mgmt Version ^3
web-token/jwt-signature Version ^3
web-token/jwt-signature-algorithm-rsa Version ^3
symfony/http-client Version ^6.0