connect, task, tx + txIf - for shared connections + automatic transactions, each exposing a connected protocol.stream - to access rows from a query via a read stream.func, proc - to simplify execution of SQL functions/procedures.map, each - for simpler/inline result pre-processing/re-mapping. result, multi, multiResult - for verbose and/or multi-query results. There are also a few specific methods that you will often need: To be automatically rejected (treated as errors). To be affected by the query, which is completely irrelevant.īy relying on the result-specific methods you protect your code from an unexpected number of data rows, Do not confuse the method name for the number of rows None, one, oneOrNone, many, manyOrNone = any. To how many rows of data the query is expected to return, so for each query you should pick the right method: You should normally use only the derived, result-specific methods for executing queries, all of which are named according MethodsĪll query methods of the library are based off generic method query. You get access to the methods documented below. Once you have created a Database object, according to the steps in the Official Documentation, Please read the Contribution Notes before opening any new issue or PR. Gets you started, and provides links to all other resources. I do free support here and on StackOverflow.Īnd if you want to help this project, I can accept Bitcoin: 1yki7MXMkuDw8qqe5icVdh1GJZSQSzKZp DocumentationĬhapter Usage below explains the basics you need to know, while the Official Documentation
0 Comments
Leave a Reply. |