mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-16 00:11:15 +00:00
* 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:
parent
eabd42b3e2
commit
e38bd61cb2
4 changed files with 10 additions and 1 deletions
|
@ -131,6 +131,7 @@
|
||||||
[channel openChannel];
|
[channel openChannel];
|
||||||
newModel = [channel describeModelWithTableNames:[channel describeTableNames]];
|
newModel = [channel describeModelWithTableNames:[channel describeTableNames]];
|
||||||
[newModel setConnectionDictionary:[adaptor connectionDictionary]];
|
[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
|
// PostgreSQL has a databaseName, SQLite3 has a databasePath in its connectionDictionary
|
||||||
if ([[adaptor connectionDictionary] objectForKey:@"databaseName"] != nil)
|
if ([[adaptor connectionDictionary] objectForKey:@"databaseName"] != nil)
|
||||||
[newModel setName: [[adaptor connectionDictionary] objectForKey:@"databaseName"]];
|
[newModel setName: [[adaptor connectionDictionary] objectForKey:@"databaseName"]];
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
PostgreSQLChannel.m
|
PostgreSQLChannel.m
|
||||||
* Apps/EOModelEditor/EOModelEditorApp.m set the model name
|
* Apps/EOModelEditor/EOModelEditorApp.m set the model name
|
||||||
correctly for SQLite3 databases too, use the file 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>
|
2013-03-14: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||||
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
|
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
NSString *SQLite3AdaptorExceptionName = @"SQLite3AdaptorException";
|
NSString *SQLite3AdaptorExceptionName = @"SQLite3AdaptorException";
|
||||||
|
|
||||||
@implementation SQLite3Adaptor : EOAdaptor
|
@implementation SQLite3Adaptor
|
||||||
- (id) init
|
- (id) init
|
||||||
{
|
{
|
||||||
return [self initWithName:@"SQLite3Adaptor"];
|
return [self initWithName:@"SQLite3Adaptor"];
|
||||||
|
|
5
EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist
Normal file
5
EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
NSPrincipalClass = SQLite3Adaptor;
|
||||||
|
NSExecutable = SQLite3EOAdaptor;
|
||||||
|
EOAdaptorClassName = SQLite3Adaptor;
|
||||||
|
}
|
Loading…
Reference in a new issue