scripting

command
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command scripting demonstrates the two ways gosmo produces T-SQL text instead of changing the server:

  • Scripter reverse-engineers DDL for objects that already exist — SSMS's "Script Table as > CREATE To".

  • WithScript intercepts writes you are about to make and collects the statements instead of executing them — SSMS's "Script Action to New Query Window" button on a properties dialog.

Run it with:

MSSQL_SERVER=localhost:1433 MSSQL_USER=sa MSSQL_PASSWORD=YourPw go run ./examples/scripting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL