execsql2 2.38.0__py3-none-any.whl → 2.40.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. execsql/cli/lint.py +40 -8
  2. execsql/cli/run.py +123 -56
  3. execsql/data/execsql.conf.template +5 -2
  4. execsql/db/base.py +9 -0
  5. execsql/db/dsn.py +2 -3
  6. execsql/db/firebird.py +31 -22
  7. execsql/db/mysql.py +14 -20
  8. execsql/db/oracle.py +6 -4
  9. execsql/db/postgres.py +13 -18
  10. execsql/exceptions.py +5 -0
  11. execsql/gui/__init__.py +13 -10
  12. execsql/gui/base.py +131 -8
  13. execsql/gui/console.py +77 -30
  14. execsql/gui/desktop.py +290 -120
  15. execsql/gui/tui.py +384 -132
  16. execsql/importers/base.py +6 -12
  17. execsql/importers/csv.py +3 -5
  18. execsql/metacommands/control.py +40 -27
  19. execsql/metacommands/data.py +11 -9
  20. execsql/metacommands/io_fileops.py +1 -1
  21. execsql/metacommands/io_write.py +0 -9
  22. execsql/metacommands/prompt.py +94 -42
  23. execsql/metacommands/script_ext.py +6 -2
  24. execsql/metacommands/system.py +0 -2
  25. execsql/parser.py +118 -8
  26. execsql/script/engine.py +1 -1
  27. execsql/script/executor.py +31 -3
  28. execsql/script/parser.py +31 -0
  29. execsql/utils/auth.py +11 -6
  30. execsql/utils/gui.py +162 -53
  31. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/METADATA +2 -2
  32. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/RECORD +49 -49
  33. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/README.md +0 -0
  34. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/config_settings.sqlite +0 -0
  35. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/example_config_prompt.sql +0 -0
  36. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/make_config_db.sql +0 -0
  37. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/md_compare.sql +0 -0
  38. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/md_glossary.sql +0 -0
  39. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/md_upsert.sql +0 -0
  40. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/pg_compare.sql +0 -0
  41. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/pg_glossary.sql +0 -0
  42. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/script_template.sql +0 -0
  43. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/ss_compare.sql +0 -0
  44. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/ss_glossary.sql +0 -0
  45. {execsql2-2.38.0.data → execsql2-2.40.0.data}/data/execsql2_extras/ss_upsert.sql +0 -0
  46. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/WHEEL +0 -0
  47. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/entry_points.txt +0 -0
  48. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/licenses/LICENSE.txt +0 -0
  49. {execsql2-2.38.0.dist-info → execsql2-2.40.0.dist-info}/licenses/NOTICE +0 -0
execsql/utils/gui.py CHANGED
@@ -41,6 +41,7 @@ __all__ = [
41
41
  "GUI_CONNECT",
42
42
  # Data-carrier classes
43
43
  "GuiSpec",
44
+ "get_gui_response",
44
45
  "ConsoleUIError",
45
46
  "ActionSpec",
46
47
  "EntrySpec",
@@ -96,7 +97,7 @@ GUI_CONNECT = "connect"
96
97
 
97
98
 
98
99
  class GuiSpec:
99
- """A request sent to the GUI manager thread."""
100
+ """A GUI request passed through the active queue adapter."""
100
101
 
101
102
  def __init__(self, gui_type: str, args: dict, return_queue: Any) -> None:
102
103
  self.gui_type = gui_type
@@ -108,6 +109,58 @@ class ConsoleUIError(Exception):
108
109
  """Raised when a GUI / console UI operation fails."""
109
110
 
110
111
 
112
+ def get_gui_response(return_queue: Any, gui_type: str) -> dict:
113
+ """Receive a GUI result on the script thread, raising transport errors.
114
+
115
+ Console shutdown raises KeyboardInterrupt here on the worker thread so
116
+ its transaction cleanup finishes before the UI closes.
117
+ Cancellation supplies the dialog's empty result fields and records
118
+ DIALOG_CANCELED. The calling handler owns CANCEL_HALT and its cleanup.
119
+ """
120
+ result = return_queue.get(block=True)
121
+ if not isinstance(result, dict):
122
+ raise ConsoleUIError(f"Invalid response from {gui_type} dialog.")
123
+ if result.get("interrupted"):
124
+ raise KeyboardInterrupt
125
+ if "error" in result:
126
+ raise ConsoleUIError(f"GUI {gui_type} failed: {result['error']}")
127
+ empty_fields: dict[str, Any] = {"button": None}
128
+ if gui_type in (GUI_DISPLAY, GUI_ENTRY):
129
+ empty_fields["return_value"] = None
130
+ elif gui_type in (GUI_SELECTSUB, GUI_ACTION):
131
+ empty_fields["row"] = None
132
+ elif gui_type == GUI_SELECTROWS:
133
+ empty_fields["rows"] = None
134
+ elif gui_type == GUI_PAUSE:
135
+ empty_fields["quit"] = True
136
+ elif gui_type in (GUI_OPENFILE, GUI_SAVEFILE):
137
+ empty_fields["filename"] = None
138
+ elif gui_type == GUI_DIRECTORY:
139
+ empty_fields["directory"] = None
140
+ elif gui_type == GUI_CREDENTIALS:
141
+ empty_fields.update(username="", password="")
142
+ elif gui_type == GUI_CONNECT:
143
+ empty_fields["db_type"] = None
144
+
145
+ cancelled = not result or result.get("cancelled") or ("button" in result and result["button"] is None)
146
+ if gui_type in (GUI_OPENFILE, GUI_SAVEFILE):
147
+ cancelled = cancelled or result.get("filename") is None
148
+ elif gui_type == GUI_DIRECTORY:
149
+ cancelled = cancelled or result.get("directory") is None
150
+ elif gui_type == GUI_PAUSE:
151
+ cancelled = cancelled or result.get("quit", False)
152
+ elif gui_type == GUI_CONNECT:
153
+ cancelled = cancelled or result.get("db_type") is None
154
+ if cancelled:
155
+ result = {**result, **empty_fields, "cancelled": True}
156
+
157
+ import execsql.state as _state
158
+
159
+ if gui_type != QUERY_CONSOLE and _state.status is not None:
160
+ _state.status.dialog_canceled = bool(cancelled)
161
+ return result
162
+
163
+
111
164
  class ActionSpec:
112
165
  """Specification for a PROMPT ACTION dialog button.
113
166
 
@@ -200,8 +253,8 @@ class EntrySpec:
200
253
  # ---------------------------------------------------------------------------
201
254
 
202
255
  _console_running: bool = False
203
- _console_width: int = 80
204
- _console_height: int = 24
256
+ _console_width: int = 100
257
+ _console_height: int = 25
205
258
  _dialog_canceled: bool = False
206
259
 
207
260
  # Active backend (set by enable_gui(); None before first call)
@@ -226,7 +279,7 @@ def gui_console_isrunning() -> bool:
226
279
 
227
280
 
228
281
  def enable_gui() -> None:
229
- """Ensure the GUI subsystem is ready and the manager thread is running.
282
+ """Ensure the GUI subsystem has a synchronous queue or manager thread.
230
283
 
231
284
  This is idempotent — subsequent calls return immediately if already set up.
232
285
 
@@ -249,21 +302,31 @@ def enable_gui() -> None:
249
302
 
250
303
  framework = _state.conf.gui_framework if _state.conf else "tkinter"
251
304
 
252
- # --- Headless POSIX guard ----------------------------------------------
253
- # B20/F041: on POSIX without DISPLAY or WAYLAND_DISPLAY, Tkinter's
254
- # ``tk.Tk()`` constructor raises a cryptic _tkinter.TclError. Skip
255
- # straight to a non-GUI backend on headless systems so the fallback
256
- # path is taken cleanly rather than after a confusing TclError that
257
- # the broad ``except Exception`` would swallow.
305
+ # Native macOS Tk uses Aqua; other POSIX desktops require a display server.
258
306
  import os as _os
307
+ import threading
259
308
 
260
- headless_posix = _os.name == "posix" and not _os.environ.get("DISPLAY") and not _os.environ.get("WAYLAND_DISPLAY")
309
+ headless_posix = (
310
+ _os.name == "posix"
311
+ and sys.platform != "darwin"
312
+ and not _os.environ.get("DISPLAY")
313
+ and not _os.environ.get("WAYLAND_DISPLAY")
314
+ )
315
+ fallback_reason = None
316
+ if framework == "tkinter" and headless_posix:
317
+ fallback_reason = "Tkinter has no DISPLAY or WAYLAND_DISPLAY"
318
+ elif (
319
+ framework == "tkinter"
320
+ and sys.platform == "darwin"
321
+ and threading.current_thread() is not threading.main_thread()
322
+ ):
323
+ fallback_reason = "Tkinter on macOS requires the main thread"
261
324
 
262
325
  # --- Tkinter sync path --------------------------------------------------
263
326
  # Tkinter must run on the main thread (required on macOS). Use a sync
264
327
  # queue that dispatches dialogs directly in the calling thread instead of
265
328
  # routing through a background manager thread.
266
- if framework == "tkinter" and not headless_posix:
329
+ if framework == "tkinter" and fallback_reason is None:
267
330
  try:
268
331
  from execsql.gui.desktop import TkinterBackend, _TkinterSyncQueue
269
332
 
@@ -272,8 +335,8 @@ def enable_gui() -> None:
272
335
  _active_backend = backend
273
336
  _state.gui_manager_queue = _TkinterSyncQueue(backend)
274
337
  return
275
- except (ImportError, RuntimeError, Exception):
276
- pass # fall through to Textual
338
+ except Exception as exc:
339
+ fallback_reason = f"Tkinter startup failed: {exc}"
277
340
 
278
341
  # --- Textual sync path --------------------------------------------------
279
342
  # Each dialog runs as a short-lived Textual App in the main thread.
@@ -284,9 +347,12 @@ def enable_gui() -> None:
284
347
 
285
348
  _active_backend = TextualBackend()
286
349
  _state.gui_manager_queue = _TextualSyncQueue()
350
+ if fallback_reason:
351
+ print(f"GUI fallback: {fallback_reason}; using Textual.", file=sys.stderr)
287
352
  return
288
- except ImportError:
289
- pass
353
+ except ImportError as exc:
354
+ reason = f"Textual unavailable: {exc}"
355
+ fallback_reason = f"{fallback_reason}; {reason}" if fallback_reason else reason
290
356
 
291
357
  # --- Thread-based manager path (ConsoleBackend fallback) ----------------
292
358
  if _state.gui_manager_thread is not None and _state.gui_manager_thread.is_alive():
@@ -299,6 +365,7 @@ def enable_gui() -> None:
299
365
 
300
366
  backend = ConsoleBackend()
301
367
  _active_backend = backend
368
+ print(f"GUI fallback: {fallback_reason}; using console prompts.", file=sys.stderr)
302
369
 
303
370
  _state.gui_manager_queue = _queue.Queue()
304
371
  t = threading.Thread(
@@ -370,35 +437,39 @@ def gui_console_wait_user(message: str = "") -> None:
370
437
 
371
438
 
372
439
  def gui_console_width(width: int | None = None) -> int:
373
- """Get or set the console width in characters.
440
+ """Get/set the configured character width, resizing the active native console.
374
441
 
375
- When *width* is provided, updates the active GUI console (if any).
376
- Always returns the current width.
442
+ A setting made before CONSOLE ON is retained. Terminal backends do not resize
443
+ their host window. The runtime configuration takes precedence over fallback
444
+ values from calls made without a configuration.
377
445
  """
446
+ import execsql.state as _state
447
+
378
448
  global _console_width
379
449
  if width is not None:
380
- import execsql.state as _state
381
-
382
450
  _console_width = int(width)
383
- if _state.gui_console is not None and hasattr(_state.gui_console, "set_width"):
384
- _state.gui_console.set_width(_console_width)
385
- return _console_width
451
+ if _state.conf is not None:
452
+ _state.conf.gui_console_width = _console_width
453
+ if _active_backend is not None:
454
+ _active_backend.console_resize(_console_width, gui_console_height())
455
+ return int(getattr(_state.conf, "gui_console_width", _console_width))
386
456
 
387
457
 
388
458
  def gui_console_height(height: int | None = None) -> int:
389
- """Get or set the console height in lines.
459
+ """Get/set configured text lines, retaining the size across native OFF/ON.
390
460
 
391
- When *height* is provided, updates the active GUI console (if any).
392
- Always returns the current height.
461
+ Terminal backends store the setting without changing their host window.
393
462
  """
463
+ import execsql.state as _state
464
+
394
465
  global _console_height
395
466
  if height is not None:
396
- import execsql.state as _state
397
-
398
467
  _console_height = int(height)
399
- if _state.gui_console is not None and hasattr(_state.gui_console, "set_height"):
400
- _state.gui_console.set_height(_console_height)
401
- return _console_height
468
+ if _state.conf is not None:
469
+ _state.conf.gui_console_height = _console_height
470
+ if _active_backend is not None:
471
+ _active_backend.console_resize(gui_console_width(), _console_height)
472
+ return int(getattr(_state.conf, "gui_console_height", _console_height))
402
473
 
403
474
 
404
475
  # ---------------------------------------------------------------------------
@@ -414,8 +485,8 @@ def gui_connect(
414
485
  ) -> None:
415
486
  """Prompt the user to select a database connection.
416
487
 
417
- Routes through the GUI manager queue when gui_level > 0 and the manager
418
- thread is running; otherwise raises ConsoleUIError.
488
+ Initializes the configured backend and routes through its queue when
489
+ gui_level > 0; otherwise raises ConsoleUIError.
419
490
  """
420
491
  import queue as _queue
421
492
 
@@ -427,7 +498,7 @@ def gui_connect(
427
498
  return_queue: _queue.Queue = _queue.Queue()
428
499
  gui_args = {"alias": alias, "message": message, "help_url": help_url}
429
500
  _state.gui_manager_queue.put(GuiSpec(GUI_CONNECT, gui_args, return_queue))
430
- result = return_queue.get(block=True)
501
+ result = get_gui_response(return_queue, GUI_CONNECT)
431
502
  db_type = result.get("db_type")
432
503
  if db_type is None:
433
504
  raise ConsoleUIError(
@@ -457,31 +528,56 @@ def _apply_connect_result(alias: str, result: dict) -> None:
457
528
  db_SqlServer,
458
529
  )
459
530
 
460
- db_type = result.get("db_type", "l")
461
- server = str(result.get("server") or "")
462
- database = str(result.get("database") or "")
463
- db_file = str(result.get("db_file") or "")
464
- username = str(result.get("username") or "")
531
+ from execsql.gui.base import connection_result
532
+ from execsql.utils.fileio import register_secret
465
533
 
534
+ try:
535
+ inputs = connection_result(
536
+ result.get("db_type", "l"),
537
+ result.get("server") or "",
538
+ (result.get("db_file") or result.get("database") or "")
539
+ if result.get("db_type") in ("l", "k", "a")
540
+ else result.get("database") or "",
541
+ result.get("username") or "",
542
+ result.get("password") or "",
543
+ result.get("port"),
544
+ result.get("encoding") or "",
545
+ )
546
+ except ValueError as exc:
547
+ raise ConsoleUIError(str(exc)) from exc
548
+ db_type = inputs["db_type"]
549
+ database = inputs["database"] or ""
550
+ db_file = inputs["db_file"] or ""
551
+ server = inputs["server"] or ""
552
+ password = inputs["password"]
553
+ if password:
554
+ register_secret(password)
555
+ auth: dict[str, Any] = {
556
+ "user": inputs["username"],
557
+ "pw_needed": bool(password),
558
+ "password": password,
559
+ "encoding": inputs["encoding"],
560
+ }
561
+ network = dict(**auth, port=inputs["port"])
466
562
  db: Any
467
563
  if db_type == "p":
468
- db = db_Postgres(server, database, user=username, pw_needed=True)
564
+ db = db_Postgres(server, database, **network)
469
565
  elif db_type == "s":
470
- db = db_SqlServer(server, database, user=username, pw_needed=True)
566
+ db = db_SqlServer(server, database, **network)
471
567
  elif db_type == "l":
472
- db = db_SQLite(db_file or database)
568
+ db = db_SQLite(db_file)
473
569
  elif db_type == "m":
474
- db = db_MySQL(server, database, user=username, pw_needed=True)
570
+ db = db_MySQL(server, database, **network)
475
571
  elif db_type == "k":
476
- db = db_DuckDB(db_file or database)
572
+ db = db_DuckDB(db_file)
477
573
  elif db_type == "o":
478
- db = db_Oracle(server, database, user=username, pw_needed=True)
574
+ db = db_Oracle(server, database, **network)
479
575
  elif db_type == "f":
480
- db = db_Firebird(server, database, user=username, pw_needed=True)
576
+ db = db_Firebird(server, database, **network)
481
577
  elif db_type == "a":
482
- db = db_Access(db_file or database)
578
+ db = db_Access(db_file)
483
579
  elif db_type == "d":
484
- db = db_Dsn(database, user=username, pw_needed=True)
580
+ db = db_Dsn(database, **auth)
485
581
  else:
486
582
  raise ConsoleUIError(f"Unknown database type from connect dialog: {db_type!r}")
487
583
 
@@ -496,8 +592,9 @@ def gui_credentials(
496
592
  ) -> None:
497
593
  """Prompt the user for credentials.
498
594
 
499
- Routes through the GUI manager queue when gui_level > 0 and the manager
500
- thread is running; otherwise falls back to the terminal.
595
+ Initializes the configured GUI transport when gui_level > 0; level zero
596
+ uses terminal input. Cancellation follows CANCEL_HALT without assigning
597
+ empty credentials over existing values when halting is off.
501
598
 
502
599
  Parameters
503
600
  ----------
@@ -516,11 +613,23 @@ def gui_credentials(
516
613
  import execsql.state as _state
517
614
 
518
615
  gui_level = _state.conf.gui_level if _state.conf else 0
519
- if gui_level > 0 and _state.gui_manager_thread is not None and _state.gui_manager_thread.is_alive():
616
+ if gui_level > 0:
617
+ enable_gui()
520
618
  return_queue: _queue.Queue = _queue.Queue()
521
619
  gui_args = {"message": message}
522
620
  _state.gui_manager_queue.put(GuiSpec(GUI_CREDENTIALS, gui_args, return_queue))
523
- result = return_queue.get(block=True)
621
+ result = get_gui_response(return_queue, GUI_CREDENTIALS)
622
+ if result.get("cancelled"):
623
+ if _state.status.cancel_halt:
624
+ from execsql.script import current_script_line
625
+ from execsql.utils.errors import exit_now
626
+
627
+ for name in (username, pwtext):
628
+ if name:
629
+ _state.subvars.remove_substitution(name)
630
+ _state.exec_log.log_exit_halt(*current_script_line(), msg="Quit from prompt for credentials.")
631
+ exit_now(2, None)
632
+ return
524
633
  uname = result.get("username", "")
525
634
  passwd = result.get("password", "")
526
635
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: execsql2
3
- Version: 2.38.0
3
+ Version: 2.40.0
4
4
  Summary: Runs a SQL script against a PostgreSQL, SQLite, MariaDB/MySQL, DuckDB, Firebird, MS-Access, MS-SQL-Server, or Oracle database, or an ODBC DSN. Provides metacommands to import and export data, copy data between databases, conditionally execute SQL and metacommands, and dynamically alter SQL and metacommands with substitution variables.
5
5
  Project-URL: Homepage, https://execsql2.readthedocs.io/en/stable/
6
6
  Project-URL: Repository, https://github.com/geocoug/execsql
@@ -351,7 +351,7 @@ execsql format --no-sql --in-place scripts/
351
351
  ```yaml
352
352
  repos:
353
353
  - repo: https://github.com/geocoug/execsql
354
- rev: v2.38.0
354
+ rev: v2.40.0
355
355
  hooks:
356
356
  - id: execsql-format
357
357
  - id: execsql-lint
@@ -3,12 +3,12 @@ execsql/__main__.py,sha256=Nnh7_QgjYTTzd1Kog2thl7wzNpoxfnZ3YaurSOMzE_U,270
3
3
  execsql/api.py,sha256=PzrQbheQZwHo9wGoLZDs5POiZISN41Ys1lUky3j8kQk,30253
4
4
  execsql/config.py,sha256=qAozPQqDhi8HjSbELjYouVhQY97aucOLoL5lz6XHeJQ,40968
5
5
  execsql/config_validation.py,sha256=a4ZszyJFGTNgs1jkvXE3yMCaYFtF1Uqih2ojMDVh1v8,10556
6
- execsql/exceptions.py,sha256=m9ktUaHA37HqDAoRlci7DKBYS5L7ZcLqEsIiRXKf6hw,10279
6
+ execsql/exceptions.py,sha256=oKChSy8lEk6vQn6TA6yvPv2BxvqAcBFh1ck8rcq8HMI,10510
7
7
  execsql/format.py,sha256=feS5dF65k_W6XF_jhKtfbwlNOy3yxomYR_dKj9850xo,59697
8
8
  execsql/interactive.py,sha256=7vm7NAlcarBJJOIffcLOcJqH9ZCInvHB_CmC2sQsXf8,8241
9
9
  execsql/manifest.py,sha256=eJp39R8bYuFuJiGaBbDsk_lua13uJHXPOdwWdUfE-CQ,9027
10
10
  execsql/models.py,sha256=8AnxILNwFZjDX8xXvv5usgOcTDsOIwkfZJjeYbXREe8,18374
11
- execsql/parser.py,sha256=l1b4RXCSej1OSa8ykDUIq6QhC3NABvI_G5pQC8BlIIE,14795
11
+ execsql/parser.py,sha256=uCQFXGM58x4UAb73K9g-HsBps-6aa0_GJF7E-B2o6t8,20292
12
12
  execsql/plugins.py,sha256=RykMlIjTyWcnQc9ygjLErS3wdcsZSsG9QTIvg4DwfAI,13626
13
13
  execsql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  execsql/state.py,sha256=oAtaiX9fD0y7cwO6Is9mM9MjaSUe-AmnjuYJ3g3r3kA,24294
@@ -19,9 +19,9 @@ execsql/cli/application.py,sha256=tsSYE8cerJxY6y73GM_Xr1WBwc6A0_al8y969B6lPP8,12
19
19
  execsql/cli/dispatch.py,sha256=deyN2QQYvdzMSqGGa3CSMpaqdLNeMgc5Uke0mUbl764,2704
20
20
  execsql/cli/dsn.py,sha256=Jqr0CBtj6L3BY25Ej-U13xHV85phX1TFTVpjB7A-KIs,4815
21
21
  execsql/cli/help.py,sha256=bEy6ssVjyIw73JD_UPLXnCtnCifdVCKJr_cydAAVxhk,8220
22
- execsql/cli/lint.py,sha256=L_YWTyQnTy01UcoWcdGAIhBkcfLLLlvuOKX903djNKo,50318
22
+ execsql/cli/lint.py,sha256=S0LjceG4UZ-IpviRm8W73Q7_GXG1Vo7_s8-QV7KACbY,51547
23
23
  execsql/cli/options.py,sha256=Srhf1gEOB5yy_7PxkTKBv07xK8Qzw8H-z7PUUnItpwE,2916
24
- execsql/cli/run.py,sha256=tyaE1g1fy3Chd9MWGZbXfBJQ8sOedffiPaTD9mP_2co,43131
24
+ execsql/cli/run.py,sha256=l0BZd-Z45z7bShbdUGqisem_0GxHUECZMPPtnrdBu48,45965
25
25
  execsql/cli/commands/__init__.py,sha256=FVe_xF7w98krP-USxqf-BIcflA1ctMYVsV8p0i6cChA,572
26
26
  execsql/cli/commands/config.py,sha256=V7CGGkhSCqeJIlAXxAYyG_xNhnsORiwqth2XWEVPzss,8213
27
27
  execsql/cli/commands/format.py,sha256=3awfNmCc6kImeyXKZo1Jt1qXbEuWk86ZllqEOY5vxzw,4456
@@ -31,19 +31,19 @@ execsql/cli/commands/listing.py,sha256=thtkJ-ILGd0SPs57oVIMkkCGpXsfS0hQxueMc2ccR
31
31
  execsql/cli/commands/lsp.py,sha256=8xIrqA4dnapdlLqbGGb53YtFTnsX2YqpLYvrrl-Z6pE,4051
32
32
  execsql/cli/commands/run.py,sha256=U9JkUmydlDVaDDDzGTUEuKGgiJEnmmUU6b06Ibr3nZY,16529
33
33
  execsql/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- execsql/data/execsql.conf.template,sha256=KSq-NvqDeIlUkEITdUUL9o_ukonOluokmK7qzN5kkC0,14414
34
+ execsql/data/execsql.conf.template,sha256=xA8jBN9P9ey4LfjwKlhAU_G8ltDVUNtH6XCKePje2MA,14621
35
35
  execsql/data/script_header.sql,sha256=a7WKScekNgJoxVEmMRTkWv8NsAzW1jJ4vJfGy9HVy0g,349
36
36
  execsql/db/__init__.py,sha256=jTbuafuKOqYtXFR1wvCOoKK5Lr3l1uErfaIbIr6UywI,1063
37
37
  execsql/db/access.py,sha256=fxiC3rtoOJzrNXNxau-w7oh1fd9tyh2_PMliBbFc164,21427
38
- execsql/db/base.py,sha256=TstAAnJw2866j-XXUjuTx-ThIhwnr34s10D4m2ro-2Q,49494
39
- execsql/db/dsn.py,sha256=Evrc6MUllJVFDn0jZB_iks-aKCsXuNF9XYjAkttqgGQ,6995
38
+ execsql/db/base.py,sha256=N3k_qws3ROqd5E4_gmGTOEswwZHauc8--AwxKJYqNEU,49823
39
+ execsql/db/dsn.py,sha256=9CMOsOtkTyLvVlgJZ3hQkDSG_-KSDszAnNXW7ttrlwE,6936
40
40
  execsql/db/duckdb.py,sha256=kkzuqlvInh6A0WmILxadv2IbgniOdOsqdME2CbHT5Hc,15957
41
41
  execsql/db/factory.py,sha256=Uz7Xcbff6ZZbtLM55FhHCwGdo4KKfqU_1kyjvOHn-HY,5691
42
- execsql/db/firebird.py,sha256=sYW46RByPPvkAiaQjDlJKMi89qGtJ2jA7EEh2LRFdUQ,10562
43
- execsql/db/mysql.py,sha256=O62R1dDrlUBLajK-VrFHQNa6q-LZQ9P1n0TikHmlPNw,27043
42
+ execsql/db/firebird.py,sha256=G6VnGYIRNC5UdFc1wKvgklSCXv1DfWwCT7E_M3BBQ3A,11290
43
+ execsql/db/mysql.py,sha256=FVL8uiOpXwGflGZD5gKAYXd-P0RLjzsDadwDeL2MyNs,26784
44
44
  execsql/db/odbc.py,sha256=l03UNHi8sFtjHbgOKUNA2teKOisNk-8laQGCsHZs2eo,2526
45
- execsql/db/oracle.py,sha256=EIbjb_GsltW56gRpgRc73o2qsY3PkwZWracNd585L1Q,15632
46
- execsql/db/postgres.py,sha256=cD7v0AHVS0iOmHFqxfS6MfA864PTD00wxo6IFktjnRg,24485
45
+ execsql/db/oracle.py,sha256=tb73a2qPsHqb6-FlCI2xjEoxpERgWOf2B98POuYcQCI,15695
46
+ execsql/db/postgres.py,sha256=PuthdQAG9XL7PkfrKumJEVLo3S_AIiAoXOcCBjt0TCM,24248
47
47
  execsql/db/sqlite.py,sha256=PTiMtDh_IT5l0ukwmr1kSaHfdMfPi4UAK6u7tnAElUc,17076
48
48
  execsql/db/sqlserver.py,sha256=W3z-2GNoqttWYiB3pENpZE7t0NvA0ox-i8v_nmoRoFk,11759
49
49
  execsql/db/target_types.py,sha256=vs0r4deATU8aZtmI3mMrt4RakCATiZbDN0JESzXhxyI,14445
@@ -72,14 +72,14 @@ execsql/exporters/xlsx.py,sha256=7sm-3KniYlB2K-n6xQmIoHbAvl2ryJhFWU95SEkR7e4,127
72
72
  execsql/exporters/xml.py,sha256=t1PSr3i8xvTCWzd9jaxxAy5NcRpl6sqjnZALafKCqpM,2575
73
73
  execsql/exporters/yaml.py,sha256=ex2h91E12wItvh84AarjrDTcZ4SDx9uq0c9wtr-NuQM,3084
74
74
  execsql/exporters/zip.py,sha256=0vDkXB19WzLzgCACBVNnGJYxacgBwEehQDL7Inl-rgw,5002
75
- execsql/gui/__init__.py,sha256=5qsg3aWsaC0HfTDrGeh_2x40QRuivGgzT7cKvaM7jS0,1269
76
- execsql/gui/base.py,sha256=DMTqHLlpZlGCsNKyrLlJPbaxvukC0n1YmR4aHEN3jPY,14983
77
- execsql/gui/console.py,sha256=dzdSl4NJNvRd9VvlwRCXHvfnXjQPimyTx7NcibcUZC8,18305
78
- execsql/gui/desktop.py,sha256=ctPb2Ne76-PrPel89pjKzwbBP7auwmDlUCKzqQZ82FY,59509
79
- execsql/gui/tui.py,sha256=ya86rzh7DwbCaGw9r9sFSZjcfiQUCWgzqxbIPSbhuUM,67039
75
+ execsql/gui/__init__.py,sha256=kaCf6Pcmixrp-itLpOoS_LZ6MzGK-AYyaSsm49Uxcoc,1623
76
+ execsql/gui/base.py,sha256=tFJdNdk4twIdDG2m8ndrH1dgpP3spivVs61hj-gkB2s,20287
77
+ execsql/gui/console.py,sha256=JZ4NGA-SptGDibjDURXPbwMau5p82wcja9hC8enAv1g,20949
78
+ execsql/gui/desktop.py,sha256=vbR4bOLf2D9I9x-3o0p7UBrYO0FLjq32_fC_BSej_U4,68249
79
+ execsql/gui/tui.py,sha256=-A4kbEkCV1F1Rmi774UknxN1_7izi_7mgPNrGDqRPfk,77300
80
80
  execsql/importers/__init__.py,sha256=zZwdQxMaValCNqUrVdvaA7XPU3J8NmqVJ4uolNWY2iU,299
81
- execsql/importers/base.py,sha256=CX33hFjIZDoB_7JAL4Xmxp4NY7-7ltRTdn6WUampdl4,5804
82
- execsql/importers/csv.py,sha256=RLEs0QLqaREGBQxo2ovYS6cRqLbTKi4rPBdkANDt56I,5032
81
+ execsql/importers/base.py,sha256=xtLlv0iuU7RM_hKs7iJWyrLAxVIxYYwviVjojIZz5wA,5632
82
+ execsql/importers/csv.py,sha256=CwmVbXebIpcbJZEq4UCtQd0iJj-mYTkRxaJWi5KFRAw,4887
83
83
  execsql/importers/feather.py,sha256=g2B69d2uv9vmnXcmjFyTVsMP40LYEzFYkhk3gD26mGw,1900
84
84
  execsql/importers/json.py,sha256=YFA-pj9_DxCvlvdCITP9Mb4eBX5Y5Ne_KQmUGhN-Cr8,6826
85
85
  execsql/importers/ods.py,sha256=5NLlgt1T0-GAoghCFBsW07nr_LCW2MhJc54YMFOnm0M,3750
@@ -100,37 +100,37 @@ execsql/lsp/server.py,sha256=gTjk1agZbygdbcowa3jkL45WJ37sxhJ58oiLB7BM6Bw,19893
100
100
  execsql/metacommands/__init__.py,sha256=aMf-3IRjMpNFSUI-IMAcvL-kXZHq5qF6W_p3UawdQwM,13115
101
101
  execsql/metacommands/conditions.py,sha256=0mZWv9P8EdEjiJ1K0yDX1kxe44GSlR37W8bCI_1Ac6k,29966
102
102
  execsql/metacommands/connect.py,sha256=Hi5Jp0sg3oDqxVvkWhkv6ErVEgofKhC_mg44CXOPHU0,16351
103
- execsql/metacommands/control.py,sha256=9swW6X8jXDUpu5cHiAnQVx1ahFyWxlx7mjg4dqYfX5Y,9355
104
- execsql/metacommands/data.py,sha256=9zxyg3_kV4jRuagUNtSlhhlvH2TiPP0gdNAaXBXdhI0,12493
103
+ execsql/metacommands/control.py,sha256=rtPlUE0m3oW6xM-woEUFkgxSGE-k1uelKboDdvQ3llU,9907
104
+ execsql/metacommands/data.py,sha256=K0QHV3Ylm7aGVXnb6rsJEgWvs77QeTl_5u5U_iqZWEo,12749
105
105
  execsql/metacommands/debug.py,sha256=mKRT7uLwnw34Xl46fNDI_zH4MsPpZyihoLlonapbXuU,12981
106
106
  execsql/metacommands/dispatch.py,sha256=d1naMWvDLoFR-qYnMI0usmonRCdNF7zF5vcl9yBb98I,87981
107
107
  execsql/metacommands/effects.py,sha256=cRSo48R4nRJzkRR3OGHLhJzofcdAaNIobaxmn1N9TGw,3813
108
108
  execsql/metacommands/io.py,sha256=_Esp4B5155FyOsJM8yVJ71mvMM5NfThVr13JFZr3s2s,3030
109
109
  execsql/metacommands/io_export.py,sha256=ss2OD6uAD_JXl_rGAhpWni6KGakZei_3CCvXCRkECKc,14551
110
- execsql/metacommands/io_fileops.py,sha256=viTWw4RUq0XMlJVLfbQ-57V2OEYCx52nKTSMzF4n2Z8,11059
110
+ execsql/metacommands/io_fileops.py,sha256=z_hDIF9jrLBVDA8PRWevT5Hg8V1CCxUZO53JyRwCFbg,11053
111
111
  execsql/metacommands/io_import.py,sha256=bjn-YN6UdKxMyIYG2u_ztLG8IudihXIYBgvNOxtuxvA,16566
112
- execsql/metacommands/io_write.py,sha256=hKnDUB6jYQc38Y8Ou_1e8tuESnDiSf6e2iAN7FVtDSY,12889
113
- execsql/metacommands/prompt.py,sha256=PlXhtBYCembG_1SSCrwpQR10mGF3_jXodu4aCSHlSCM,37950
112
+ execsql/metacommands/io_write.py,sha256=EGqiaP6-YDTqC2r7s19PlHRnVBJVM9BuU_ArqWHGxSo,12555
113
+ execsql/metacommands/prompt.py,sha256=2UVzWGw0k9vJACBcLMYG5ar0wqbsLqhcCAbE2HTJR_E,40786
114
114
  execsql/metacommands/reference.py,sha256=M8T_MSACfzfLg3AshFZR4IfWsjEsRH8GsZ5pXNsGoPU,54688
115
- execsql/metacommands/script_ext.py,sha256=dtEjvl_gjPeAmsGZdp1evqGuz8lErKsuajMFGuPsEbE,3917
116
- execsql/metacommands/system.py,sha256=0noc1u-KlO6gE0KqJDScDeX0gIlG5ciaJplxOt-EDyo,8517
115
+ execsql/metacommands/script_ext.py,sha256=SAYpALCGWuveAq3VcN0XLRkt1aF_eylrbgF8CYVrSSI,4124
116
+ execsql/metacommands/system.py,sha256=rZ69MxtnoFVY_VBBj_1Q6M1G_HMA1KqUES7cdOGpE5Q,8421
117
117
  execsql/metacommands/upsert.py,sha256=hcYGonmh2sdijbqwNynn1-iajMnLp7x5vbRbtfjaf8c,21461
118
118
  execsql/script/__init__.py,sha256=I7hVO6wm3iOocxRRGEcFHhjdtL1moKbUYLB-wKbjPdk,3267
119
119
  execsql/script/ast.py,sha256=KexrVh6dE4nHCB5CbC9odiPdyWw4rnUqD8bOsYdyNXg,21417
120
120
  execsql/script/control.py,sha256=GF-IpfEwfsz306087Huq9hx4C84SVo-r7kew_e5QsLg,5170
121
- execsql/script/engine.py,sha256=h1pUSXGqwJASLJizqzd9LBMn_U5Vuqc1UbaZk1xUinw,18468
122
- execsql/script/executor.py,sha256=39UelaAss0ATbGeexF_yE6OSbrOoYFZhylF_RmeAwSY,52822
123
- execsql/script/parser.py,sha256=wogBw31kPddNox3fz5KPS-y3He163h_T-ES2ZfZsrCI,39695
121
+ execsql/script/engine.py,sha256=m40bLnFnWz8Uib4dfXbOv4JvKsIZ9nkFiFUNEfTd2Fc,18486
122
+ execsql/script/executor.py,sha256=vdAVQFw80EnegvFQNgiuj1DADfJ0PdzJzQ2RumZNsv0,54025
123
+ execsql/script/parser.py,sha256=v5C67-FP09wWGRdyxwZdljh_SwxO3zql3LN0IhxZCN4,40758
124
124
  execsql/script/preparation.py,sha256=yxZN6L2_pQR1rJ_jhoFUpaOYEw5bQVsu2HawDZ_rhRY,1626
125
125
  execsql/script/variables.py,sha256=XHRnViFp0zPy-skGpYbpckkYAcczqpw1lqTVLR9eZvo,17735
126
126
  execsql/utils/__init__.py,sha256=0uR6JwVJQRX3vceByNBduCAf5dd5assKjeqJUWvpZoA,278
127
- execsql/utils/auth.py,sha256=0LYKdNMhodq9R0B8WyKp69a-xlP9wOR6Ua9Lgo2aJnQ,14868
127
+ execsql/utils/auth.py,sha256=Tq5UskowrRSUhjImjrxlt3L25zCgGgrO2dLmS41hK-g,15082
128
128
  execsql/utils/color.py,sha256=goQqhnLg8yERpFolQikA9zYSVcuAm0unKTJiWTbQm-U,634
129
129
  execsql/utils/crypto.py,sha256=KlT6lPk-v0-qQQfAMfWvT9Q6kRdCD3_5JVaLajNocKM,3051
130
130
  execsql/utils/datetime.py,sha256=9ZizCFBYut5gC4gU3Cmegfddv1HLoU5xVQWm9thy5EI,6127
131
131
  execsql/utils/errors.py,sha256=KFR-xu6j8yhl6sqJVivJRuG6WZKGgkPmmJdCr2aUlSQ,12790
132
132
  execsql/utils/fileio.py,sha256=riYxyZw_qrwm67nvbrqixeVnY3bT4s9o6C7SVc3T4V0,56617
133
- execsql/utils/gui.py,sha256=1iiupP9AsLdR6ST0gcLE143o6y6YGUFlNv_pdVPxfCE,23943
133
+ execsql/utils/gui.py,sha256=8Njj0EhQTYeh6LP8Lfpazjbc-ncebH_5cOopGORPHIk,28283
134
134
  execsql/utils/mail.py,sha256=4RiKtXa_sqij_YGdYmjQ3PG0u3G9qjs-9caQwBErtBw,7278
135
135
  execsql/utils/numeric.py,sha256=_7bi5R6pHjMCkOPne_Sh5nUj-B8e9g6WFmjptFHaunA,1573
136
136
  execsql/utils/paths.py,sha256=7IIHT6vqXTfs6Ltfrzm_I2ZV4pU8IuedOLkHo6a1_K8,1175
@@ -139,22 +139,22 @@ execsql/utils/sigterm.py,sha256=_oK-Hj8vHiKTgR04mNud7BMX90Fb1TDHb9eT7f-auAI,5842
139
139
  execsql/utils/spreadsheet.py,sha256=XlFfanhLivQb-UlMrGQpUYtA6mjWXZrlpFom8QsidJM,2785
140
140
  execsql/utils/strings.py,sha256=gHmR3BDl6YkHDHt2xaTN-KEhrhxNl7838V4lzrohLRU,8657
141
141
  execsql/utils/timer.py,sha256=eDYf5VzCNFk7oo90InJucUm3XcBdhYMogjZMqeg9xzc,1899
142
- execsql2-2.38.0.data/data/execsql2_extras/README.md,sha256=W3lNyuOpx73eiyGl6DlqgO0OiznbzPUg65xMNmq1mQQ,5756
143
- execsql2-2.38.0.data/data/execsql2_extras/config_settings.sqlite,sha256=aY5cxR7Q7J6zJ4bC9lu5mHUrhy211Cq3MNKPQVCt02E,20480
144
- execsql2-2.38.0.data/data/execsql2_extras/example_config_prompt.sql,sha256=ckoBxBNyuff06R45qClCRmdZa_uxR8gF6nubrZEASlQ,7486
145
- execsql2-2.38.0.data/data/execsql2_extras/make_config_db.sql,sha256=WwyC6dK-Eh5CAVppiBCDHqiI1_wEI9U95Ytpr4lsZkg,8726
146
- execsql2-2.38.0.data/data/execsql2_extras/md_compare.sql,sha256=ARYEcOlxWLxfw-KCKDeJRdCqnuCb9PVwGaHtITR2sYU,26535
147
- execsql2-2.38.0.data/data/execsql2_extras/md_glossary.sql,sha256=gu2PDTm295YvxR7cDp25Mf-xXHly0BvlMudoNOrep5Q,10931
148
- execsql2-2.38.0.data/data/execsql2_extras/md_upsert.sql,sha256=YNUTFS6yB4bZXs-wRDn6dN8jL5wIumzZyE2uo5arIos,113407
149
- execsql2-2.38.0.data/data/execsql2_extras/pg_compare.sql,sha256=WcupGxQoWtMwHVPuy42xCpP4gAV4Ttb1W-_hwh-3xb4,24529
150
- execsql2-2.38.0.data/data/execsql2_extras/pg_glossary.sql,sha256=CfQz2HZj2nMvJfYfQrAmNYdx0uRrOIWsCXwVo5gKv_k,9953
151
- execsql2-2.38.0.data/data/execsql2_extras/script_template.sql,sha256=s5i0HULxp49N2Cpd24iALleM_dBq5oLuN3Arx_4Z7-o,11140
152
- execsql2-2.38.0.data/data/execsql2_extras/ss_compare.sql,sha256=PpU-vPyqqC1faBoo5zwVZlZHYKkT79QZisWVlk4o-ss,26415
153
- execsql2-2.38.0.data/data/execsql2_extras/ss_glossary.sql,sha256=_oTiZHpadPXWrNs8VoRe9PZgX9XdK490NMVWVTVtjl4,13110
154
- execsql2-2.38.0.data/data/execsql2_extras/ss_upsert.sql,sha256=Dvst877h4KHn8ayYF9EXI_OxqLQ89wyfcnGYYT4szro,118304
155
- execsql2-2.38.0.dist-info/METADATA,sha256=nIW3G_T0DANxxSoXRccICdWdw9_CtPnoMR-f-KBMhK0,24189
156
- execsql2-2.38.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
157
- execsql2-2.38.0.dist-info/entry_points.txt,sha256=jOf53-4IVGjEZeNYUOF1GGaiPNfVZcNKxP3vDFKEyMA,58
158
- execsql2-2.38.0.dist-info/licenses/LICENSE.txt,sha256=LBdhuxejF8_bLCHZ2kWfmDXpDGUu914Gbd6_3JjCRe0,676
159
- execsql2-2.38.0.dist-info/licenses/NOTICE,sha256=McYzgxYav3U1OaVsY4Su1sfBrfmplpRdA9b6-gCDQCg,342
160
- execsql2-2.38.0.dist-info/RECORD,,
142
+ execsql2-2.40.0.data/data/execsql2_extras/README.md,sha256=W3lNyuOpx73eiyGl6DlqgO0OiznbzPUg65xMNmq1mQQ,5756
143
+ execsql2-2.40.0.data/data/execsql2_extras/config_settings.sqlite,sha256=aY5cxR7Q7J6zJ4bC9lu5mHUrhy211Cq3MNKPQVCt02E,20480
144
+ execsql2-2.40.0.data/data/execsql2_extras/example_config_prompt.sql,sha256=ckoBxBNyuff06R45qClCRmdZa_uxR8gF6nubrZEASlQ,7486
145
+ execsql2-2.40.0.data/data/execsql2_extras/make_config_db.sql,sha256=WwyC6dK-Eh5CAVppiBCDHqiI1_wEI9U95Ytpr4lsZkg,8726
146
+ execsql2-2.40.0.data/data/execsql2_extras/md_compare.sql,sha256=ARYEcOlxWLxfw-KCKDeJRdCqnuCb9PVwGaHtITR2sYU,26535
147
+ execsql2-2.40.0.data/data/execsql2_extras/md_glossary.sql,sha256=gu2PDTm295YvxR7cDp25Mf-xXHly0BvlMudoNOrep5Q,10931
148
+ execsql2-2.40.0.data/data/execsql2_extras/md_upsert.sql,sha256=YNUTFS6yB4bZXs-wRDn6dN8jL5wIumzZyE2uo5arIos,113407
149
+ execsql2-2.40.0.data/data/execsql2_extras/pg_compare.sql,sha256=WcupGxQoWtMwHVPuy42xCpP4gAV4Ttb1W-_hwh-3xb4,24529
150
+ execsql2-2.40.0.data/data/execsql2_extras/pg_glossary.sql,sha256=CfQz2HZj2nMvJfYfQrAmNYdx0uRrOIWsCXwVo5gKv_k,9953
151
+ execsql2-2.40.0.data/data/execsql2_extras/script_template.sql,sha256=s5i0HULxp49N2Cpd24iALleM_dBq5oLuN3Arx_4Z7-o,11140
152
+ execsql2-2.40.0.data/data/execsql2_extras/ss_compare.sql,sha256=PpU-vPyqqC1faBoo5zwVZlZHYKkT79QZisWVlk4o-ss,26415
153
+ execsql2-2.40.0.data/data/execsql2_extras/ss_glossary.sql,sha256=_oTiZHpadPXWrNs8VoRe9PZgX9XdK490NMVWVTVtjl4,13110
154
+ execsql2-2.40.0.data/data/execsql2_extras/ss_upsert.sql,sha256=Dvst877h4KHn8ayYF9EXI_OxqLQ89wyfcnGYYT4szro,118304
155
+ execsql2-2.40.0.dist-info/METADATA,sha256=6faMw2-Rx3CvKskKvQwAKPpmkwpHdrwFvS8l1RZLjoc,24189
156
+ execsql2-2.40.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
157
+ execsql2-2.40.0.dist-info/entry_points.txt,sha256=jOf53-4IVGjEZeNYUOF1GGaiPNfVZcNKxP3vDFKEyMA,58
158
+ execsql2-2.40.0.dist-info/licenses/LICENSE.txt,sha256=LBdhuxejF8_bLCHZ2kWfmDXpDGUu914Gbd6_3JjCRe0,676
159
+ execsql2-2.40.0.dist-info/licenses/NOTICE,sha256=McYzgxYav3U1OaVsY4Su1sfBrfmplpRdA9b6-gCDQCg,342
160
+ execsql2-2.40.0.dist-info/RECORD,,