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

7 lines
318 B
Smalltalk
Raw Permalink Normal View History

2022-04-06 16:21:08 +00:00
accessing
storeDB
| localDBFile localDBConnection |
2022-04-06 16:21:08 +00:00
localDBFile := FileLocator userData / 'Socialmetrica' / 'socialmetrica.sqlite'.
localDBConnection := ReStore connection: (SSWSQLite3Connection on: localDBFile fullName).
localDBConnection isConnected ifFalse: [ ^ localDBConnection connect ].
^ localDBConnection