Database
13 commands. Toolkit id ooa.database.
| Command | What it does |
|---|---|
| Begin transaction | Start a transaction; changes are kept only after Commit. |
| Bulk insert | Insert 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. |
| Commit | Save the changes made since Begin transaction. |
| Connect | Open a database connection as a named session. |
| Describe table | Return the columns of a table with their types, sizes and whether they accept empty values. |
| Disconnect | Close the session. Uncommitted changes are rolled back. |
| Each row of a SQL query | Run a SELECT with ? parameters and yield each row as a record keyed by column name. |
| Export to CSV file | Run a SELECT or a stored procedure with ? parameters and write its rows to a CSV file without loading them into memory. |
| Insert/update/delete | Run an INSERT, UPDATE, DELETE or DDL statement with ? parameters. |
| List tables | List 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 back | Undo the changes made since Begin transaction. |
| Run stored procedure | Call 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. |