https://github.com/rstoetter/csql-php
a PHP class with various methods to work on and analyze SQL statements
https://github.com/rstoetter/csql-php
php5 sql
Last synced: 4 months ago
JSON representation
a PHP class with various methods to work on and analyze SQL statements
- Host: GitHub
- URL: https://github.com/rstoetter/csql-php
- Owner: rstoetter
- License: mit
- Created: 2017-06-30T08:32:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T13:00:12.000Z (about 8 years ago)
- Last Synced: 2025-08-13T04:26:43.414Z (11 months ago)
- Topics: php5, sql
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# csql-php
The class cSQL is written in PHP and helps to manage SQL statement components.
The namespace is rstoetter\\cSql
## static methods provided by the class cSQL
cSQL::AddFunction()
cSQL::CheckedFieldName()
cSQL::CombineFieldName()
cSQL::DotCount()
cSQL::FieldNameIn()
cSQL::FormatStatement()
cSQL::GetAliasFromTablename()
cSQL::GetAliasOrRealFieldname()
cSQL::GetRealFieldname()
cSQL::HasAlias()
cSQL::IsEscaped()
cSQL::IsExtraStartIdentifier()
cSQL::IsFunctionSQL()
cSQL::IsJoin()
cSQL::IsQualified()
cSQL::IsSqlZeroDate()
cSQL::IsSqlZeroDateTime()
cSQL::IsSqlZeroTime()
cSQL::IsSubquerySQL()
cSQL::IsSubqueryStatement()
cSQL::IsValidFieldName()
cSQL::PositionEndFunctionSQL()
cSQL::RemoveAlias()
cSQL::RemoveAll()
cSQL::RemoveEscapes()
cSQL::RemoveFunctions()
cSQL::RemoveQualification()
cSQL::SchemaNameIn()
cSQL::SetExtraIdentifier()
cSQL::SetExtraStartIdentifier()
cSQL::SplitQualifiedFieldname()
cSQL::SqlDate2DateTime()
cSQL::SqlDateTime2DateTime()
cSQL::SqlTime2DateTime()
cSQL::TableNameIn()
## Installation
This project assumes you have composer installed. Simply add:
"require" : {
"rstoetter/csql-php" : ">=1.0.0"
}
to your composer.json, and then you can simply install with:
composer install
## more information
See the [project wiki](https://github.com/rstoetter/csql-php/wiki) for more information.