Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery support #43

Open
w113st opened this issue Feb 18, 2024 · 7 comments
Open

BigQuery support #43

w113st opened this issue Feb 18, 2024 · 7 comments

Comments

@w113st
Copy link

w113st commented Feb 18, 2024

Hi, can you support BigQuery?

@victorteokw
Copy link
Collaborator

Hi @w113st, What is BigQuery?

@victorteokw
Copy link
Collaborator

@w113st, could you please star this repo? Thanks

@victorteokw
Copy link
Collaborator

@w113st, Is it a database? Are you familiar with Teo? How do you think to support it?

@w113st
Copy link
Author

w113st commented Feb 18, 2024

Hi Victor, it's Google's relational database that supports geoqueries. 10 GiB of data is free. You can use node package like this:

const {BigQuery} = require('@google-cloud/bigquery');
const bigquery = new BigQuery();

async function queryWithPagination(pageNumber, resultsPerPage) {
  const query = `
    SELECT *
    FROM your_table
    ORDER BY some_column
    LIMIT @resultsPerPage
    OFFSET @offset
  `;

  const options = {
    query: query,
    params: {resultsPerPage, offset: (pageNumber -  1) * resultsPerPage},
    location: 'US',
  };

  const [rows] = await bigquery.query(options);
  return rows;
}

There's a local emulator you can use for testing:
https://github.com/goccy/bigquery-emulator

@victorteokw
Copy link
Collaborator

@w113st, I think in the future, Cassandra and BigQuery will be supported. The current SQL connector cannot support BigQuery.

@w113st
Copy link
Author

w113st commented Feb 19, 2024

Ok sure thank you. I will keep following your work after GraphQL Joker

@victorteokw
Copy link
Collaborator

Thanks @w113st

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants