Skip to main content

Database

13 commands. Toolkit id ooa.database.

CommandWhat it does
Begin transactionStart a transaction; changes are kept only after Commit.
Bulk insertInsert every row of a Data Table, or of a delimited text file read line by line, into a database table in batches, all or nothing.
CommitSave the changes made since Begin transaction.
ConnectOpen a database connection as a named session.
Describe tableReturn the columns of a table with their types, sizes and whether they accept empty values.
DisconnectClose the session. Uncommitted changes are rolled back.
Each row of a SQL queryRun a SELECT with ? parameters and yield each row as a record keyed by column name.
Export to CSV fileRun a SELECT or a stored procedure with ? parameters and write its rows to a CSV file without loading them into memory.
Insert/update/deleteRun an INSERT, UPDATE, DELETE or DDL statement with ? parameters.
List tablesList the tables and views the connection can see, optionally in one schema.
Read from (query)Run a SELECT with ? parameters and return the rows as a table.
Roll backUndo the changes made since Begin transaction.
Run stored procedureCall a stored procedure or function with input, output and in-out parameters; return the rows it produces, its output values and a function's return value.