/usr/include/GNUstep/EOControl/EOSQLParser.h is in libsope-dev 2.2.17-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | /*
Copyright (C) 2000-2005 SKYRIX Software AG
This file is part of SOPE.
SOPE is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with SOPE; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#ifndef __EOControl_EOSQLParser_H__
#define __EOControl_EOSQLParser_H__
#import <Foundation/NSObject.h>
#import <Foundation/NSString.h>
/*
This is parser can be used to parse simple SQL statements. It's not a full
SQL implementation, but should be sufficient for simple applications.
Additional hints:
- the selected attributes are added to the 'attributes' hint, if a
wildcard select is used (*), the hint is not set
- the depth of WebDAV scope from-queries are set in the depth-hint, valid
values are "deep", "flat", "flat+self", "self"
- if multiple entities are queried in the FROM, they are joined using ","
and set as the entityName of the fetch spec
*/
@class EOFetchSpecification, EOQualifier;
@interface EOSQLParser : NSObject
{
}
+ (id)sharedSQLParser;
/* top level parser entry points */
- (EOFetchSpecification *)parseSQLSelectStatement:(NSString *)_sql;
- (EOQualifier *)parseSQLWhereExpression:(NSString *)_sql;
/* parsing parts (exported for overloading in subclasses) */
- (BOOL)parseSQL:(id *)result
from:(unichar **)pos length:(unsigned *)len
strict:(BOOL)beStrict;
- (BOOL)parseToken:(const unsigned char *)tk
from:(unichar **)pos length:(unsigned *)len
consume:(BOOL)consume;
- (BOOL)parseIdentifier:(NSString **)result
from:(unichar **)pos length:(unsigned *)len
consume:(BOOL)consume;
- (BOOL)parseQualifier:(EOQualifier **)result
from:(unichar **)pos length:(unsigned *)len;
- (BOOL)parseScope:(NSString **)_scope:(NSString **)_entity
from:(unichar **)pos length:(unsigned *)len;
- (BOOL)parseColumnName:(NSString **)result
from:(unichar **)pos length:(unsigned *)len
consume:(BOOL)consume;
- (BOOL)parseTableName:(NSString **)result
from:(unichar **)pos length:(unsigned *)len
consume:(BOOL)consume;
- (BOOL)parseIdentifierList:(NSArray **)result
from:(unichar **)pos length:(unsigned *)len
selector:(SEL)_sel;
@end
#endif /* __EOControl_EOSQLParser_H__ */
|