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
Copy file name to clipboardExpand all lines: DEVELOPERS.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -37,21 +37,21 @@ Datasette runs through SQL queries, so your connector has to accept these querie
37
37
38
38
The `execute` method receives:
39
39
40
-
* sql: the query
41
-
* params: a dictionary with the params used in the query
42
-
* truncate: a boolean saying if the returned data can be separated in pages or not
43
-
* page_size: the number of rows a page can contain
44
-
* max_returned_rows: the maximum number of rows Datasette expects
40
+
***sql**: the query
41
+
***params**: a dictionary with the params used in the query
42
+
***truncate**: a boolean saying if the returned data can be separated in pages or not
43
+
***page_size**: the number of rows a page can contain
44
+
***max_returned_rows**: the maximum number of rows Datasette expects
45
45
46
-
We need to parse the query because PyTables has his own style for queries, but other databases could work with the SQL queries without requiring any parsing.
46
+
We need to parse the query because PyTables has its own style for queries, but other databases could work with the SQL queries without requiring any parsing.
47
47
48
48
Sometimes, Datasette make queries to `sqlite_master`; you need to keep it in mind.
49
49
50
50
The `execute` method has to return a tuple with:
51
51
52
52
* a list of rows (Datasette expects something like SQLite rows)
53
53
* a boolean saying if the data is truncated, i.e., if we return all the rows or there are more rows than the maximum indicated in max_returned_rows
54
-
* a tuple with the description of the columns in the form (('c1',), ('c2',), ...)
54
+
* a tuple with the description of the columns in the form `(('c1',), ('c2',), ...)`
0 commit comments