Provide abstractions for
- sequences (auto increment)
- limits and offsets
- value binding
- MySQL's REPLACE INTO for Oracle (or INSERT ... ON DUPLICATE KEY UPDATE)
Provide abstractions for
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
function parse_yaml { | |
local source="$1" | |
local prefix="$2" | |
cat "$source" | perl -MCPAN::Meta::YAML <(cat <<'EOF' | |
$yaml_str = do { local $/; <STDIN> }; |
#!/bin/bash | |
# DESCRIPTION | |
# This script migrates from "apt-key" managed keys to "[signed-by=/usr/share/keyrings/...]": | |
# - loop through all lists in /etc/apt/sources.list.d | |
# - read all lines with "deb..." that do not contain "[signed-by=]" | |
# - download the GPG signature from the URL | |
# - read the key ID from the signature | |
# - download and saves the key using gpg | |
# - add "[signed-by=/usr/share/keyrings/...]" to the "deb..." line |