Pagination will look like the following for a 24-page results set.
< 1 2 3 4 5 6 ... 24 >
< 1 2 3 4 5 6 ... 24 >
< 1 2 3 4 5 6 ... 24 >
import axios from "axios"; | |
import _ from "lodash"; | |
import fs from "fs"; | |
// HI: long: -178 to -155 | |
// HI: lat: 18 to 29 | |
// PR: long: -67 to -64 | |
// PR: lat: 17 to 19 | |
// AK: long: -180 to -125 | |
// AK: lat: 50 to 70 |
I hereby claim:
To claim this, I am signing this object:
// Because we're using an ORM (Objection), it's a pain to add a tsvector when inserting, | |
// since tsvectors and FTS aren't supported by Objection. Instead, I've added a hook that | |
// fires on insert which auto-generates the tsvector field for each newly inserted entry. | |
// This is an example knex migration file for said behavior. | |
const addUserIndex = ` | |
ALTER TABLE public.user ADD "document" tsvector; | |
CREATE FUNCTION my_trigger_function() | |
RETURNS trigger AS $$ |
I hereby claim:
To claim this, I am signing this object: