Learn how to populate the database with data from Lake Pend Oreille.
- View Offline
- Exercise Files
- [Instructor] In this video we'll request data…from Link Pinned and record it in the database.…We'll start by defining a function called…record data for year bang.…Give this a year parameter, and I'll create a let binding.…First I'll bind last d t to a call…to d b find last datetime.…We'll use this value to track our last recorded time…in the database so that we only record values after that.…Next, I'll create a binding I'll call data seek…by calling fetch seek for year,…and I'll pass for the given year.…
This will be the sequence of data coming from let pend…in the let body, I'll create doseq expression…because we'll need to iterate over this sequence…and perform some side effects.…Rather than iterating over the entire sequence…at once, I'm gonna call the built in partition all function…and pass it the value 1000 and then pass it to data seq.…This will create a sequence of sequences of size 1000…or less.…In this way we'll group the response in rows of 1000.…So I'll bind this to row dash group.…
In the doseq body I'll create a new let expression.…
Skill Level Intermediate
1. Problem 1: Exploring Lake Pend Oreille
2. Problem 2: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Recursion and Directories
6. Problem 6: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.