Code Monkey home page Code Monkey logo

odbc-cli's People

Contributors

amjith avatar detule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

stjordanis

odbc-cli's Issues

SQL Server Crash

SELECT SERVERPROPERTY('Collation');
Executing query...Ctrl-c to cancel
Query execution...done
Time: 0.003s
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/site-packages/odbcli/__main__.py", line 4, in <module>
    main()
  File "/usr/local/lib/python3.8/site-packages/odbcli/cli.py", line 55, in main
    if crsr.description:
  File "cyanodbc/cursor.pxi", line 272, in cyanodbc._cyanodbc.Cursor.description.__get__
KeyError: -150

Completion in historical queries

Currently completion works well (or so I think!) in queries that are being typed out.

However there is one issue I have encountered - say:

  • You connect to a database: DbMetadata object gets a list of catalogs as the connection is immediately expanded.
  • You recall a query from history SELECT * FROM AdventureWorks2017.Person.Address
  • Auto complete works fine if you were to, for example expand the query with ... WHERE.
  • However if you were to erase from the end and try and reach a different table within the AdventureWorks2017.Person schema completion would come up blank since at that point it hasn't enumerated the schema within the AdventureWorks2017 catalog. (DbMetadata returns None, which is a signal to the completer that this is not a valid catalog.schema combination)

One possible solution - prior to returning None, perhaps DbMetadata should check if AdventureWorks2017 has been listed at all.

Long term solution is that all the extend_* calls should be taken out of the completer and brought inside DbMetadata so that we can house all the logic of the form if not found then query in one place.

Sidebar optimization

sql_sidebar: myControl (buffer control) should only reconstruct the document if something in the sidebar has changed (expanded / collapsed). (my_app.obj_list has changed?)

sql_sidebar: myLexer, rather than storing the entire list of tokens, what about tokenizing only the specific line that was requested?

Oracle DB support

Hello,
I really liked this tools (mycli, ..etc).
It would be great to add support for Oracle DB.

Sidebar locking

Expand operations happen in a thread.

While in theory, these should be quick, need to insert some locks here to avoid races as we do surgeries on the object list (expand / collapse).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.