Question: Trying to find a vertical tab character in a CLOB field. Using regexp\_like which doesn't support entry of hex characters.
so this is not valid
and REGEXP\_LIKE(,'[\xB]','i')
Posix entries don't seem to help as :cntl: includes items like carriage return/new line which is valid in my scenario.

Answer: 
`firestore.collection("trucks").get()` [returns a Promise](https://cloud.google.com/firestore/docs/query-data/get-data).

If you want to log out the data, you could write an asynchronous method:

```
cors(request, response, async () => {
  const trucks = await firestore.collection('trucks').get();
  logger(trucks);
  // ...
});

```
I think you can control which DB functions are listening to with `GOOGLE_APPLICATION_CREDENTIALS` environment variable. Running without will listen to local, while running with your production `firebaseAdminSdkServiceAccount.json` will listen to changes on production DB.

On windows you would start it from terminal like this:

```
SET GOOGLE_APPLICATION_CREDENTIALS=/config/firebaseAdminSdkServiceAccount.json
firebase emulators:start

```

Then for listening for firestore document changes you reference:

```
const functions = require('firebase-functions');
functions.firestore.document('/mydoc/{mydocId}').onWrite(...)

```

EDIT: To make sure I'm right I did some googling, and came up with this explaination: 

> 
> When using emulators:start we want to keep people inside the local
>  emulation environment unless they specifically ask to be broken out.
>  Right now, you can ask to contact production by manually restoring the
>  GOOGLE\_APPLICATION\_CREDENTIAL files when running in the emulator.
> 
> 
> 

<https://github.com/firebase/firebase-tools/issues/1412#issuecomment-504561828>