Comments (3)
From [email protected] on September 27, 2009 20:07:28
Came across this while browsing some issues looking for any sign of future asyncvfs
support. Is explicit support for derived classes necessary? Can't the user accomplish
the same thing by defining a class like this?:
class Foo(object):
def init(self, cur):
self._cur = _cur
def getattr(self, k):
return getattr(self.dict['_cur'], k)
They could then add or override any methods as necessary.
from apsw.
From rogerbinns on September 27, 2009 20:15:56
Asyncvfs support is already in the current codebase. If you check out the code using
Mercurial then you will have it or you can wait till the next formal release which
will be a day or two after the next SQLite release. You can read the doc http://code.google.com/p/apsw/source/browse/doc/build.rst to see how to get it
downloaded and included. There is also a page about extensions. If you email me
privately I can also send you a zip file of the current built html documentation
which is a lot easier to read (file is ~250kb). [Or you can install Sphinx and its
dependencies which is more of a pain.]
What you have listed above is simply the 'proxy' pattern. What people really want is
to be able to tell Connection what class to use for cursors. That then won't need
any modifications at places where cursors are created.
from apsw.
Derive cursors have worked for a few releases now
from apsw.
Related Issues (20)
- Unknown apsw attribute 'SQLiteValues' HOT 3
- Cursor.executemany should be annotated as accepting Iterable[Bindings] instead of Sequence[Bindings] HOT 1
- Implement Unicode TR-29 and TR-14 HOT 1
- error: static declaration of ‘PyLong_AsInt’ in Python 3.13+ HOT 3
- Switch to cosign for signing
- Incorrect values in `colUsed` HOT 2
- Update to Unicode 16.0 when released September 2024 HOT 1
- connection.set_row_trace - excepts; Connection.setrowtrace works HOT 4
- `connection.setrowtrace` stops working when adapters are registered HOT 5
- Datetimes into sqlite via APSW HOT 1
- Revise logging levels
- query execution row and time limits HOT 1
- Support subtypes in functions
- Don't cache pragmas
- con.pragma can't accept blobs HOT 1
- Update Connection.pragma with schema parameter
- Implement SQLITE_FCNTL_VFSNAME
- VFS xRandomness errors need to be unraisable HOT 1
- apsw.ext.query_info should find bound parameters
- Comprehensive dump module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apsw.