Socialmetrica/Socialmetrica.package/TweetsCollection.class/class/storeDB.st

7 lines
318 B
Smalltalk

accessing
storeDB
| localDBFile localDBConnection |
localDBFile := FileLocator userData / 'Socialmetrica' / 'socialmetrica.sqlite'.
localDBConnection := ReStore connection: (SSWSQLite3Connection on: localDBFile fullName).
localDBConnection isConnected ifFalse: [ ^ localDBConnection connect ].
^ localDBConnection