[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# BigQuery Client - Class Dataset (1.34.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.34.0 (latest)](/php/docs/reference/cloud-bigquery/latest/Dataset)\n- [1.33.1](/php/docs/reference/cloud-bigquery/1.33.1/Dataset)\n- [1.32.0](/php/docs/reference/cloud-bigquery/1.32.0/Dataset)\n- [1.31.1](/php/docs/reference/cloud-bigquery/1.31.1/Dataset)\n- [1.30.3](/php/docs/reference/cloud-bigquery/1.30.3/Dataset)\n- [1.29.0](/php/docs/reference/cloud-bigquery/1.29.0/Dataset)\n- [1.28.3](/php/docs/reference/cloud-bigquery/1.28.3/Dataset)\n- [1.27.0](/php/docs/reference/cloud-bigquery/1.27.0/Dataset)\n- [1.26.1](/php/docs/reference/cloud-bigquery/1.26.1/Dataset)\n- [1.25.1](/php/docs/reference/cloud-bigquery/1.25.1/Dataset)\n- [1.24.2](/php/docs/reference/cloud-bigquery/1.24.2/Dataset)\n- [1.23.10](/php/docs/reference/cloud-bigquery/1.23.10/Dataset) \nReference documentation and code samples for the BigQuery Client class Dataset.\n\n[Datasets](https://cloud.google.com/bigquery/docs/datasets-intro) allow\nyou to organize and control access to your tables.\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery\n\nMethods\n-------\n\n### __construct\n\n### exists\n\nCheck whether or not the dataset exists.\n\nExample: \n\n echo $dataset-\u003eexists();\n\n### delete\n\nSee also:\n\n- [Datasets delete API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/delete)\n\n### update\n\nSee also:\n\n- [Datasets patch API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/patch)\n- [Patch (Partial Update)](https://cloud.google.com/bigquery/docs/api-performance#patch)\n\n### table\n\nLazily instantiates a table.\n\nThere are no network requests made at this point. To see the operations\nthat can be performed on a dataset please see [Table](/php/docs/reference/cloud-bigquery/latest/Table).\n\nExample: \n\n $table = $dataset-\u003etable('myTableId');\n\n### tables\n\nSee also:\n\n- [Tables list API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/list)\n\n### createTable\n\nSee also:\n\n- [Tables insert API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/insert)\n\n### model\n\nLazily instantiates a machine learning model in the dataset.\n\nThere are no network requests made at this point. To see the operations\nthat can be performed on a model, please see [Model](/php/docs/reference/cloud-bigquery/latest/Model).\n\nExample: \n\n $model = $dataset-\u003emodel('my_model');\n echo $model-\u003eid();\n\n### models\n\nSee also:\n\n- [Models list API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/models/list)\n\n### routine\n\nLazily instantiates a routine.\n\nThere are no network requests made at this point. To see the operations\nthat can be performed on a routine, please see\n[Routine](/php/docs/reference/cloud-bigquery/latest/Routine).\n\nExample: \n\n $routine = $dataset-\u003eroutine('my_routine');\n echo $routine-\u003eidentity()['routineId'];\n\n### routines\n\nSee also:\n\n- [List Routines API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/routines/list)\n\n### createRoutine\n\nSee also:\n\n- [Insert Routines API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/routines/insert)\n\n### info\n\nSee also:\n\n- [Datasets resource documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets)\n\n### reload\n\nSee also:\n\n- [Datasets get API documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/get)\n\n### id\n\nRetrieves the dataset's ID.\n\nExample: \n\n echo $dataset-\u003eid();\n\n### identity\n\nRetrieves the dataset's identity.\n\nAn identity provides a description of a resource that is nested in nature.\n\nExample: \n\n echo $dataset-\u003eidentity()['projectId'];"]]