-- name: InsertDomain64 :exec
INSERT INTO d64 
  (url, d64, tld_id, domain_id, subdomain_id, path_id) 
  VALUES 
  (?, ?, ?, ?, ?, ?);

-- name: GetTLD :one
SELECT id from domain64
  WHERE tld_id = ?

-- name: CountTLD :one
SELECT COUNT(*) FROM domain64 WHERE tld_id = ?;