if (FALSE) {
# ingesting from local:
# ingest via Azure storage
cont <- AzureStor::storage_container("https://mystorage.blob.core.windows.net/container",
sas="mysas")
ingest_local(db, "file.csv", "table",
method="indirect", storage_container=cont)
ingest_local(db, "file.csv", "table", method="streaming")
# ingest by inlining data into query
ingest_inline(db, "file.csv", "table", method="inline")
# ingesting online data:
# a public dataset: Microsoft web data from UCI machine learning repository
ingest_url(db,
"https://archive.ics.uci.edu/ml/machine-learning-databases/anonymous/anonymous-msweb.data",
"table")
# from blob storage:
ingest_blob(db,
"https://mystorage.blob.core.windows.net/container/myblob",
"table",
sas="mysas")
# from ADLSGen2:
token <- AzureRMR::get_azure_token("https://storage.azure.com", "mytenant", "myapp", "password")
ingest_blob(db,
"abfss://filesystem@myadls2.dfs.core.windows.net/data/myfile",
"table",
token=token)
}
Run the code above in your browser using DataLab