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
Click to show internal directories.
Click to hide internal directories.