Skip to content

Instantly share code, notes, and snippets.

@Tristramg
Created January 14, 2019 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tristramg/8160ab975f5a78ee2228d91b533524b2 to your computer and use it in GitHub Desktop.
Save Tristramg/8160ab975f5a78ee2228d91b533524b2 to your computer and use it in GitHub Desktop.
WITH grenoble AS (
SELECT id from dataset where spatial = 'Grenoble-Alpes Métropole'
)
INSERT into resource
(dataset_id, url, format, title)
SELECT grenoble.id, resource.* FROM (VALUES
('https://app-be8e53a7-9b77-4f95-bea0-681b97077017.cleverapps.io/gtfs_rt', 'gtfs-rt', 'Flux temps réel GTFS RT'),
('https://app-be8e53a7-9b77-4f95-bea0-681b97077017.cleverapps.io/', 'siri-lite', 'API temps réel Siri Lite')
) as resource, grenoble;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment