question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get a conn for sql query?

See original GitHub issue

I want to manually build query using pypika.

    conn = await pg.get_connection()
    user = Table('user')
    q = Query.from_(user).select('*')
    print(q.get_sql())
    values = await conn.fetch(q.get_sql())

How to get a connection by Tortoise-orm and make a query?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lntuitioncommented, Jun 28, 2020

@jet10000 Unfortunately, tortoise doesn’t execute raw sql yet. We should consider from #139.

0reactions
jet10000commented, Jun 27, 2020

I have referred to this document, but I want to handle raw sql query.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickstart: Connect and query a SQL Server instance using ...
Start SQL Server Management Studio. · The Connect to Server dialog box appears. · After you've completed all the fields, select Connect.
Read more >
SQL Connection Strings tips
How to connect SQL Server using a connection string ; SELECT. session_id ;,program_name,. last_request_start_time, ; last_request_end_time,.
Read more >
C# Database Connection: How to connect SQL Server ...
Selecting data from the database – Once the connection has been established, the next important aspect is to fetch the data from the...
Read more >
PHP mysqli query() Function - W3Schools
Perform query against a database: <?php ... mysqli_query(connection, query, resultmode) ... MYSQLI_USE_RESULT (Use this to retrieve large amount of data) ...
Read more >
SQL Server connection strings - ConnectionStrings.com
If your SQL Server listens on a non-default port you can specify that using the servername,xxxx syntax (note the comma, it's not a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found