node-pg interval
// Expire after 30 days. If need some other unit, say second,
// use '1 second' instead of '1 day'
pg.query(`
UPDATE
my_table
SET
expire_after = $1 * INTERVAL '1 day'
RETURNING *
`, [30])
node-pg interval
// Expire after 30 days. If need some other unit, say second,
// use '1 second' instead of '1 day'
pg.query(`
UPDATE
my_table
SET
expire_after = $1 * INTERVAL '1 day'
RETURNING *
`, [30])
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us