Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first naive implementation of virtual table #115

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

duhlin
Copy link

@duhlin duhlin commented Dec 6, 2013

  • see test/test_vtable.rb for example
  • only select is supported (update/insert is not yet implemented)


#ifdef ENABLE_TRACE
static FILE* pf;
# define TRACE(str) \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this TRACE implementation. Seems to be a debugging leftover when you created this? There is no other parts of the codebase that use this, so I think might need to be removed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. This macro was for debugging only. It can be safely removed.
Le 6 déc. 2013 17:21, "Luis Lavena" [email protected] a écrit :

In ext/sqlite3/module.c:

@@ -0,0 +1,244 @@
+#include <stdio.h>
+#include <sqlite3_ruby.h>
+
+#undef ENABLE_TRACE
+
+#ifdef ENABLE_TRACE
+static FILE* pf;
+# define TRACE(str) \

I'm not sure about this TRACE implementation. Seems to be a debugging
leftover when you created this? There is no other parts of the codebase
that use this, so I think might need to be removed.


Reply to this email directly or view it on GitHubhttps://github.com//pull/115/files#r8165201
.

@lionelperrin
Copy link

Hello,

@luislavena Is there anything you'd like me to fix/change/review so that this pull request can be integrated ? May be some documentation ?

Regards,

Lionel

lionelperrin and others added 6 commits April 1, 2016 19:41
* see test/test_vtable.rb for example
* only select is supported (update/insert is not yet implemented)
- fix unit test so that it can be launched using 'rake'
* remove class SQLite3::Module and create class SQLite3::VTable
* when declared, store VTables in db.vtables
@graf0
Copy link

graf0 commented Nov 4, 2023

is there a chance to merge vtable feature into sqlite3 gem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants