persistentstorage/dbms/usql/UQ_UTL.CPP
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "UQ_STD.H"
       
    17 
       
    18 // Class Sql
       
    19 
       
    20 CSqlQuery* Sql::ParseQueryLC(const TDesC& aSql)
       
    21 	{
       
    22 	TSqlParser parser(aSql);
       
    23 	return parser.QueryLC();
       
    24 	}
       
    25 
       
    26 CSqlSearchCondition* Sql::ParseSearchConditionLC(const TDesC& aSql)
       
    27 	{
       
    28 	TSqlParser parser(aSql);
       
    29 	return parser.SearchConditionLC();
       
    30 	}
       
    31 
       
    32 CSqlDDLStatement* Sql::ParseDDLStatementLC(const TDesC& aSql)
       
    33 	{
       
    34 	TSqlParser parser(aSql);
       
    35 	return parser.DDLStatementLC();
       
    36 	}
       
    37 
       
    38 CSqlDMLStatement* Sql::ParseDMLStatementLC(const TDesC& aSql)
       
    39 	{
       
    40 	TSqlParser parser(aSql);
       
    41 	return parser.DMLStatementLC();
       
    42 	}
       
    43 
       
    44 Sql::TStatementType Sql::Type(const TDesC& aSql)
       
    45 	{
       
    46 	TSqlParser parser(aSql);
       
    47 	return parser.Type();
       
    48 	}