sshportal/pkg
Jason Wessel 19605f0054 feat: Add postgres support
Postgres is more picky about submitting a string to the id column in a
table.  Postgres requires the use of only integers for the array of
values in a select statement containing: where id IN (...array...)

This patch fixes all the following class of problems:

   SELECT * FROM "ssh_keys" WHERE
   "ssh_keys"."deleted_at" IS NULL AND ((id IN ('host')) OR (name IN
   ('host'))) ORDER BY "ssh_keys"."id" ASC LIMIT 1 [0 rows affected or
   returned ] error: pq: invalid input syntax for
   type integer: "host"

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2021-03-09 08:57:08 -06:00
..
bastion Add generation of ecdsa and ed25519 keys. 2020-10-10 04:21:11 +02:00
crypto Add generation of ecdsa and ed25519 keys. 2020-10-10 04:21:11 +02:00
dbmodels feat: Add postgres support 2021-03-09 08:57:08 -06:00