nlink/nomad/sql.go

12 lines
330 B
Go

package nomad
var createSQL = `CREATE TABLE IF NOT EXISTS posts (
url TEXT UNIQUE NOT NULL PRIMARY KEY,
title TEXT UNIQUE NOT NULL,
pub_date INTEGER NOT NULL
);`
var markSQL = `INSERT INTO posts (url, title, pub_date) VALUES (?, ?, ?);`
var filterSQLTpl = `SELECT url FROM posts WHERE url IN (%s)`