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
Please note: if you have autopandas set to true, the displaylimit option will not apply. You can set the pandas display limit by using the pandas ``max_rows`` option as described in the `pandas documentation <http://pandas.pydata.org/pandas-docs/version/0.18.1/options.html#frequently-used-options>`_.
215
252
@@ -225,12 +262,15 @@ If you have installed ``pandas``, you can use a result set's
225
262
226
263
In [4]: dataframe = result.DataFrame()
227
264
228
-
The bogus non-standard pseudo-SQL command ``PERSIST`` will create a table name
265
+
266
+
The `--persist` argument, with the name of a
267
+
DataFrame object in memory,
268
+
will create a table name
229
269
in the database from the named DataFrame.
230
270
231
271
.. code-block:: python
232
272
233
-
In [5]: %sql PERSIST dataframe
273
+
In [5]: %sql --persist dataframe
234
274
235
275
In [6]: %sql SELECT*FROM dataframe;
236
276
@@ -308,11 +348,14 @@ Credits
308
348
- Mike Wilson for bind variable code
309
349
- Thomas Kluyver and Steve Holden for debugging help
310
350
- Berton Earnshaw for DSN connection syntax
351
+
- Bruno Harbulot for DSN example
311
352
- Andrés Celis for SQL Server bugfix
312
353
- Michael Erasmus for DataFrame truth bugfix
313
354
- Noam Finkelstein for README clarification
314
355
- Xiaochuan Yu for `<<` operator, syntax colorization
315
356
- Amjith Ramanujam for PGSpecial and incorporating it here
357
+
- Alexander Maznev for better arg parsing, connections accepting specified creator
@@ -25,6 +27,7 @@ class SqlMagic(Magics, Configurable):
25
27
26
28
Provides the %%sql magic."""
27
29
30
+
displaycon=Bool(True, config=True, help="Show connection string after execute")
28
31
autolimit=Int(0, config=True, allow_none=True, help="Automatically limit the size of the returned result sets")
29
32
style=Unicode('DEFAULT', config=True, help="Set the table printing style to any of prettytable's defined styles (currently DEFAULT, MSWORD_FRIENDLY, PLAIN_COLUMNS, RANDOM)")
30
33
short_errors=Bool(True, config=True, help="Don't display the full traceback on SQL Programming Error")
0 commit comments