update
Some checks failed
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-09-12 12:47:10 +10:00
parent 18a2b7227e
commit 0d2f983eb3
14 changed files with 319 additions and 52 deletions

View File

@@ -1,3 +1,15 @@
-- name: ListInventory :many
SELECT * FROM "Inventory"
ORDER BY "Name";
ORDER BY "Name";
-- name: GetInventoryByName :one
SELECT * FROM "Inventory"
WHERE "Name" = ? LIMIT 1;
-- name: CreateInventory :one
INSERT INTO "Inventory" (
"Name", "Vcenter", "VmId", "EventKey", "EventId", "CreationTime", "ResourcePool", "VmType", "Datacenter", "Cluster", "Folder", "ProvisionedDisk", "InitialVcpus", "InitialRam", "SrmPlaceholder"
) VALUES(
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
RETURNING *;