Google Firestore Integration
Description
Xbasic functions for interacting with Google Firestore NoSQL databases.
Alpha Anywhere provides a set of low-level Xbasic functions that allow you to interact with Google Firestore, a NoSQL database. These functions enable you to perform standard CRUD (Create, Read, Update, Delete) operations against your Firestore data directly from Xbasic scripts.
Connection Strings
Before using the Xbasic functions, you must define a named connection string to your Firestore database. This allows you to reference the database connection by name in your code.
Generating Xbasic Code with the Genie
Writing the Xbasic code to interact with Firestore APIs can be complex. To simplify this, Alpha Anywhere includes a built-in Genie that generates the necessary code for you.
To access the Genie:
The Genie allows you to select the specific operation you want to perform (such as Get, Post, Put, or Delete) and select the Connection String. It then generates the valid Xbasic code to perform that operation.
Open an Xbasic script editor.
Right-click on the background to open the context menu.
Select Genies > Firestore...
Available Functions
The following functions are available for interacting with Firestore. You can use the Genie described above to generate examples of how to call these functions.
- firestore_get()
Retrieves data from a specific collection or document.
- firestore_post()
Adds a new document to a collection.
- firestore_put()
Updates an existing document.
- firestore_delete()
Deletes a document from a collection.
- firestore_test()
Tests the connection to the Firestore database to ensure the credentials and project ID are correct.
See Also