* add EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist

needed to make the EODataBrowser correctly detect that
          the SQLite3Adaptor is a subclass of EOAdaptor
        * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
          little tweak


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36418 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2013-03-24 16:52:06 +00:00
parent eabd42b3e2
commit e38bd61cb2
4 changed files with 10 additions and 1 deletions

View file

@ -131,6 +131,7 @@
[channel openChannel];
newModel = [channel describeModelWithTableNames:[channel describeTableNames]];
[newModel setConnectionDictionary:[adaptor connectionDictionary]];
#warning better use and test against NSClassFromString(adaptorClassName), see EOAdaptor adaptorWithName:
// PostgreSQL has a databaseName, SQLite3 has a databasePath in its connectionDictionary
if ([[adaptor connectionDictionary] objectForKey:@"databaseName"] != nil)
[newModel setName: [[adaptor connectionDictionary] objectForKey:@"databaseName"]];

View file

@ -7,6 +7,9 @@
PostgreSQLChannel.m
* Apps/EOModelEditor/EOModelEditorApp.m set the model name
correctly for SQLite3 databases too, use the file name
* add EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist
needed to make the EODataBrowser correctly detect that
the SQLite3Adaptor is a subclass of EOAdaptor
2013-03-14: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m

View file

@ -35,7 +35,7 @@
NSString *SQLite3AdaptorExceptionName = @"SQLite3AdaptorException";
@implementation SQLite3Adaptor : EOAdaptor
@implementation SQLite3Adaptor
- (id) init
{
return [self initWithName:@"SQLite3Adaptor"];

View file

@ -0,0 +1,5 @@
{
NSPrincipalClass = SQLite3Adaptor;
NSExecutable = SQLite3EOAdaptor;
EOAdaptorClassName = SQLite3Adaptor;
}