kopia lustrzana https://github.com/micropython/micropython-lib
sqlite3: Less obtrusive debug output.
rodzic
bf811614cf
commit
ad7b1ad64e
|
@ -1,4 +1,4 @@
|
||||||
srctype = micropython-lib
|
srctype = micropython-lib
|
||||||
type = module
|
type = module
|
||||||
version = 0.2
|
version = 0.2.1
|
||||||
author = Paul Sokolovsky
|
author = Paul Sokolovsky
|
||||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-sqlite3',
|
setup(name='micropython-sqlite3',
|
||||||
version='0.2',
|
version='0.2.1',
|
||||||
description='sqlite3 module for MicroPython',
|
description='sqlite3 module for MicroPython',
|
||||||
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
|
|
|
@ -88,9 +88,9 @@ class Cursor:
|
||||||
s = sqlite3_prepare(self.h, sql, -1, b, None)
|
s = sqlite3_prepare(self.h, sql, -1, b, None)
|
||||||
check_error(self.h, s)
|
check_error(self.h, s)
|
||||||
self.stmnt = int.from_bytes(b)
|
self.stmnt = int.from_bytes(b)
|
||||||
print("stmnt", self.stmnt)
|
#print("stmnt", self.stmnt)
|
||||||
self.num_cols = sqlite3_column_count(self.stmnt)
|
self.num_cols = sqlite3_column_count(self.stmnt)
|
||||||
print("num_cols", self.num_cols)
|
#print("num_cols", self.num_cols)
|
||||||
# If it's not select, actually execute it here
|
# If it's not select, actually execute it here
|
||||||
# num_cols == 0 for statements which don't return data (=> modify it)
|
# num_cols == 0 for statements which don't return data (=> modify it)
|
||||||
if not self.num_cols:
|
if not self.num_cols:
|
||||||
|
|
Ładowanie…
Reference in New Issue