kopia lustrzana https://github.com/micropython/micropython-lib
sqlite3: Use ffilib to load shared library.
rodzic
cb4ba77c86
commit
132ab9520e
|
@ -1,4 +1,5 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.2.1
|
||||
version = 0.2.2
|
||||
author = Paul Sokolovsky
|
||||
depends = ffilib
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-sqlite3',
|
||||
version='0.2.1',
|
||||
version='0.2.2',
|
||||
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.",
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
@ -15,4 +15,5 @@ setup(name='micropython-sqlite3',
|
|||
maintainer='MicroPython Developers',
|
||||
maintainer_email='micro-python@googlegroups.com',
|
||||
license='MIT',
|
||||
py_modules=['sqlite3'])
|
||||
py_modules=['sqlite3'],
|
||||
install_requires=['micropython-ffilib'])
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import ffi
|
||||
import ffilib
|
||||
|
||||
|
||||
sq3 = ffi.open("libsqlite3.so.0")
|
||||
sq3 = ffilib.open("libsqlite3")
|
||||
|
||||
sqlite3_open = sq3.func("i", "sqlite3_open", "sp")
|
||||
#int sqlite3_close(sqlite3*);
|
||||
|
|
Ładowanie…
Reference in New Issue