semsol / arc2

ARC RDF Classes for PHP
Other
332 stars 89 forks source link

Attempt to implement an in-memory store using SQLite #147

Closed k00ni closed 3 years ago

k00ni commented 3 years ago

What?

This PR contains code for an in-memory store which uses PDO + SQLite (:memory:). Because it is based on existing classes it provides the same functionality as its MySQL based pendant.

I also extended PHP-CS-Fixer coverage and improved code readability overall.

Details

Ref: #105

k00ni commented 3 years ago

We have an in-memory store now! :rocket:

Added a small section to README.md about the new store: https://github.com/semsol/arc2/tree/pr/sqlite-in-memory-store#in-memory-store-sqlite-based

@semsol (or should I use @bnowack from now on?): What do you think? I know there are many changes, but if you could take a look at SQLite related changes in store/. My approach was to keep what you've built and add some if-clauses, in case SQL differs between MySQL and SQLite. Thanks in advance.

k00ni commented 3 years ago

@zozlak: What do you think about a standalone library providing an in-memory triple store? It could be based on this code here, using SQLite with :memory:.

zozlak commented 3 years ago

What do you think about a standalone library providing an in-memory triple store? It could be based on this code here, using SQLite with :memory:.

I think there are many things to discuss here but I would be glad to talk with you about it. I propose you contact me by email not to spam here too much.

bnowack commented 3 years ago

Wow! how cool is that?