Top Level Namespace

Defined Under Namespace

Modules: Sqlglot

Constant Summary collapse

RUST_REPO =
"https://github.com/protegrity/sql-glot-rust.git"
RUST_TAG =
"v0.10.0"
EXT_DIR =
__dir__
RUST_DIR =
File.join(EXT_DIR, "sql-glot-rust")
LIB_DIR =
File.expand_path("../../lib/sqlglot", EXT_DIR)

Instance Method Summary collapse

Instance Method Details

#command_exists?(cmd) ⇒ Boolean

── Pre-flight checks ─────────────────────────────────────────────────

Returns:

  • (Boolean)


30
31
32
# File 'ext/sqlglot_rust/extconf.rb', line 30

def command_exists?(cmd)
  system("command -v #{cmd} > /dev/null 2>&1")
end