You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ Save the result of the last select to a csv file:
103
103
104
104
$export file.csv
105
105
106
+
If the result was already fetched, the query is rerun.
107
+
106
108
``def``
107
109
-------
108
110
To use a custom python function in the script:
@@ -113,9 +115,28 @@ To use a custom python function in the script:
113
115
...
114
116
return ret
115
117
118
+
``view``
119
+
--------
120
+
Print the result of the last select on the terminal:
121
+
122
+
.. code:: sql
123
+
124
+
$view [limit]
125
+
126
+
An optional argument ``limit`` sets the maximum number of rows to display. If ``limit`` is omitted, the its value is ``100``. If ``limit == -1``, then no limit is set.
127
+
128
+
If the result was already fetched, the query is rerun.
129
+
130
+
``print``
131
+
---------
132
+
Print a string or a list of string on the terminal
133
+
134
+
.. code:: sql
135
+
136
+
$print something
137
+
116
138
TODO
117
139
====
118
140
* A ``script`` instruction that stores the session
119
-
* A ``print`` instruction that prints the result of the last query
120
141
* A ``dump`` instruction to dump the in memory database
0 commit comments