Rapid Database Application Development
|
||
Development |
"Microsoft Access for Linux"
|
|
Discussion About OpenDocument Format Specification for Desktop Databasesjstaniek, june 2005 Further discussions are moved to this wiki page This page contains discussion about extension the OpenDocument specification for database document type, proposed by OASIS Technical Commitee:
0. Terms
1. General analysis
<define name="office-database"> <element name="office:database"> <ref name="office-database-attlist"/> <ref name="db-data-source"/> [...]
2. Data SourceConnection resource Current specs say: The xlink:href attribute indicates a database URL, which locates a database driver. Current OpennOffice.org database layer can use .jar archives downloaded by pointing an URL, however this is pretty orthogonal to what the specs are developed for. I found Connection resource section as implementation-dependent and problematic. For example:
Summing up:
Suppress Version Columns Could this setting be moved to application settings? It looks too much find-grained, in most cases user may want to define this flag at global level or for particular database drivers. Extension Could this setting be moved to application settings? Moreover, for now it overrides desktop environment's settings regarding extensions. Is it ok that there's no mention about mime type system. Is First Row Header Line Tied to storage method (more specifically, defines how table schema is returned within a connection), hence makes little sense within db-data-source-attlist. Can make sense if this is used with CSV format, otherwise we cannot even say whether a row is first or not... Show Deleted We're assuming that 'delete row' action is implemented as marking records as deleted (probably by marking a boolean bit of a record, at high-level). This can be storage-independent, but introduces problems with support for queries with JOIN or GROUP BY clause: we won't be able to rely on a database engine's query exectutor without regenerating SQL statements. Only some engines, like DBF, can provide API function for showing deleted records. This flag is reasonable if it means for showing deleted records at GUI level, i.e. marging them, say, crossed out with red line or so. In this case the flag could go to application settings' specs. Is Table Name Length Limited Note for this and similar attributes: what if we're moving connection data to different place and use them with a db server having slightly different capatibilities? Suggestion is that we may want to have such attributes defined at application (or even desktop) level, and that can provide defaults for every connection data we're using. Thus, "Is Table Name Length Limited" can be left empty and default can be retrieved from global settings. System Driver Settings, and other Also: Enable Sql92 Check, Append Table Alias Name, Parameter Name Substitution, Ignore Driver Privileges, Boolean Comparison Mode, Use Catalog, .... Like "Is Table Name Length Limited": driver-specific and engine version-specific. ^ toc3. LoginOK Is Password Required Like 2.6: driver-specific and engine version-specific. ^ toc3.1. DelimiterNote: This setting is more for CSV-like data sources than file-based databases in general. For example, communication with file-based engines like SQLite is similar to communication with server engines, so delimiter element could not be needed there. Defaults for Field, String, Decimal, Thousand is highly engine-dependent, so could be copied from engine description. ^ toc3.2. Font Charset (Encoding)Like "Is Table Name Length Limited": driver-specific and engine version-specific. Note: some engines can have compile-time, hardcoded deault encodings. ^ toc3.3. Table Filter, Table Filter PatternLike "Is Table Name Length Limited": driver-specific and engine version-specific. It's db engine specific, how we can retrieve database schema. Table patterns can be used, but it's not always possible to use just SQL to retrieve the schema -- specific db access API can provide it's own function to do so. ^ toc3.4. Table TypeAll three TABLE, VIEW, SYSTEM_TABLE types are usable. We can also add a type for high-level system table type -- in case of this is a group of kexi_ _* tables used for metadata storage. For forward compatibility we could allow to define a type using patterns, like "kexi_ _*". ^ toc3.5. Auto IncrementIn Kexi, hadling auto increment values is hardcoded in Kexi-level db driver itself. Low-level database access APIs are not changing frequently so don't need a possibility for configuring auto increment settings in engine descriptions. Additional Column Statement, Row Retrieving Statement See 3.5. it's hard to imagine such setting can be reused after a driver speci These settings look specific for OO.org's database layer. Other db layers, like KexiDB can provide it's own settings, no compatible with, say, OO.org. ^ toc3.6. Data Source SettingsUseful as an extension for common connection settings. In fact, many of above settings like Table Filter can be moved here. ^ toc4. DB objects in general(table schemas, query schemas, forms, reports) This is a part of specification for database schema format. This XML format is not necessary stored as-is: it is only specified for schema data exchange. Note: We are not assumming table schemas are available from engine nor forms definitions are stored in the same place as table data. Thus, the XML format can be considered as intermediate one for database project's schema exchange. ^ toc4.1. TitlesProposed extension: title (also suitable for any other object types like reports, queries and forms). Unlike name, which is ofter latin1 string, title is a user-visible string and can contain any characters (using \n is not reasonable though). Can be used with report generation or autoforms, so user is not forced to enter a table title again and again. <define name="common-db-table-name-attlist" combine="interleave"> <optional> <attribute name="db:title"> <ref name="string"/> </attribute> </optional> </define> Proposed extension: description, see notes for title. Can be used to fully describe an object with information for developers and users. It is similar to db:description within db-table-attlist element. <define name="common-db-table-name-attlist" combine="interleave"> <optional> <attribute name="db:description"> <ref name="string"/> </attribute> </optional> </define> Note: There's already db:name attribute used within queries, forms and reports but we also need to have identifier (latin1 name) available for such types of objects, so they can be easily and clearly referenced in by a scripts. So the proposal is to have db::name for real latin1 name (identifier) and db:title for title. ^ toc5. Tables^ toc5.1. Type NameCan db:type-name be defined at engine description level, not at table schema level? ^ toc5.2. Is Empty AllowedProposal: Addional boolean flag -- only meaningful for data dypes where length property exists, i.e. various strings and CLOBs. If true, empty (not necessary null!) values are allowed. Is Nullable == true implies Is Empty Allowed == true. Implementations like Kexi and MSA provide this flag. Note that Is Empty Allowed contratint is usually enforced at client application level, not at db engine level. ^ toc5.3 VisibilityWhat are exactly collapse and filter values in db:visibility? ^ toc6. Queries^ toc6.1. Master Table within a QueryUpdate Table is a table which will be updated when the data of the query is modified; within Kexi it's called Master Table, as only master side of a SQL join ca nbe editable. (if a query only references only one table, it's master table). The proposal is to rename Update Table term to Master Table. ^ tocTable and Query (View) Formatting PropertiesProposed aditional properties. These will be most probably defined within styles.
|
|||||
|