Procedural File: flatfile.php
Source Location: /flatfile.php
Classes:
Flatfile
Implements simple but powerful flat file database storage and retrieval
WhereClause
Used to test rows in a database table, like the WHERE clause in an SQL statement.
SimpleWhereClause
Implements a single WHERE clause that does simple comparisons of a field with a value.
ListWhereClause
WhereClause class to match a value from a list of items
CompositeWhereClause
Abstract class that combines zero or more WhereClause objects together.
OrWhereClause
CompositeWhereClause that does an OR on all its child WhereClauses.
AndWhereClause
CompositeWhereClause that does an AND on all its child WhereClauses.
Page Details:
Simple but powerful flatfile database
The Flatfile class and related WhereClause classes can be used for manipulating tab-delimited text files. It is designed to be a replacement for a real SQL database when the performance of a real database is not needed, or when in the prototyping stage. It supports a very powerful and extensible equivalent to the WHERE clause. It provides some equivalent to SELECT ... ORDER BY (ordering by a single field only), and no implementation of JOINs or GROUP BY.
Tags:
ASCENDING [line 47]
AUTO_COMPARISON [line 40]
DESCENDING [line 49]
INTEGER_COMPARISON [line 44]
STRING_COMPARISON [line 42]
|