EuSQL Documentation
Table of Contents

Introduction

EuSQL v0.78.1 by Matt Lewis
mattlewis@users.sourceforge.net
http://eusql.sourceforge.net

OVERVIEW

This is an attempt to bring some added power to EDS by turning EDS files into Relational Databases. EuSQL implements a fairly large subset of standard SQL.

EuSQL requires the Euphoria 2.5 or later.

EuSQL will run on any platform that runs Euphoria. There is no platform specific code in EuSQL.

LICENSE AND DISCLAIMER

The MIT License

Copyright (c) 2006 Matt Lewis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FILES INCLUDED

Main Library files:
  eusql.e      :  Main include file
  eusql.htm    :  You're reading it.
  hlist.e      :  Hybrid associative list routines by Jiri Babor.  Used by EuSQL.
  sprint.e     :  Adopted from Gabriel Boehme's print.e

Matheval files (used for comparisons and calculations by EuSQL):
  matheval.e   :  Main matheval lib file.
  booleval.e   :  Evaluates boolean expressions.
  ppeval.e     :  Formats matheval sequences for display.
  misceval.e   :  Used by matheval.e
  parseval.e   :  Parses mathematical and logical expressions
  scripteval.e :  More complex operators
  texteval.e   :  Text manipulation
  datetimeval.e:  Date and time functions

Demo Files:
  archive.edb  :  RDS's archive of user contributions
  sql.ex       :  Demo that creates sql.edb from archive.edb
  sqldemo.ex   :  Demo that runs several queries on sql.edb
  print.e      :  Gabriel Boehme's smart print routines (used in the demo)


Table of Contents

Topic

Description

IndexAlphabetical list of all items.
APIImportant notes on using the EuSQL API
Change HistorySummary of changes made to the library
DataFunctions for manipulating records.
DB ManagementNavigation, creation and deletion of databases and tables
ErrorsTrapping and using EuSQL error information
Known BugsStill gotta squash these...
Miscellaneous NotesHow it works, helpful hints
QueriesThese functions are used for executing SQL statements.
SQLSummary of supported SQL syntax
TODOWhat's next?
UtilitiesHelper routines used by the library that may be useful

Index

& [punctuation]
API
AS [keyword]
AVG [aggregate]
blank_field [func]
blank_record [func]
Change History
clear_params [proc]
close_db [proc]
COUNT [aggregate]
CREATE [command]
create_db [func]
create_field [func]
create_index [func]
create_table [func]
Data
Datatypes
Dates
DATE_TIME [func]
DB Management
DELETE [command]
delete_record [func]
DISTINCT [keyword]
DROP [command]
drop_field [func]
drop_index [func]
drop_table [func]
Errors
EUSQLRESULT [type] User defined type
eusql_err_out [proc]
eusql_exclusive [proc]
eusql_true_typecheck [proc]
flat_field_names [func]
flat_index [func]
flat_record [func]
FROM [keyword]
GET_DATE [func]
GET_DAY [func]
get_field_datatype [func]
GET_HOUR [func]
GET_MINUTE [func]
GET_MONTH [func]
get_next_autonumber [func]
get_parameter [func]
get_record [func]
get_record2 [func]
get_record_mult_fields [func]
get_record_struct [func]
GET_SECOND [func]
get_sql_err [func]
get_sql_keyword [func]
GET_TIME [func]
GET_YEAR [func]
GROUP [aggregate]
IF [keyword]
IN [keyword]
init_params [proc]
INSERT [command]
insert_record [func]
insert_record2 [func]
JOIN: [keyword]
Known Bugs
LEFT [keyword]
LEN [keyword]
LIKE [keyword]
LOWER [keyword]
map_field [func]
MAX [aggregate]
MID [keyword]
MIN [aggregate]
Miscellaneous Notes
NOW [func]
open_db [func]
ORDER [keyword]
parse_sql [func]
Queries
reindex [func]
reindex_table [func]
rename_field [func]
rename_table [func]
RIGHT [keyword]
run_query [func]
run_sql [func]
SELECT [command]
select_current [func]
select_db [func]
select_table [func]
seq_fetch [func]
seq_remove [func]
seq_store [func]
set_parameter [proc]
SQL
STR [keyword]
SUM [aggregate]
text_to_date_time [func]
TODO
tokenize [func]
type_check [func]
UNION [keyword]
UPDATE [command]
update_record [func]
update_record2 [func]
UPPER [keyword]
Utilities
VAL [keyword]
validate_field [func]
validate_field2 [func]
WHERE [keyword]
[...] [punctuation]