-
Notifications
You must be signed in to change notification settings - Fork 4
LexDbFunctions
The LexDB uses a PostgreSQL database to provide a source of lexical items for client applications such as the LKB. This page provides a description of the internal (but "public") database functions used by a client connected to the LexDB. See also LexDbInternals for some documentation on the structure of the database itself.
Returns nothing if psql server version is compatible with the LexDB. Else returns message text.
Empty rev and rev_key tables. Register updated modstamp.
Returns t.
Call as user lexdb.
Update public schema with contents of rev and rev_key. Register updated modstamp.
Does NOT empty contents of rev and rev_key. Call clear_rev() as standard user to do this.
Returns t.
Returns possible completions of val amongst values taken by field in table lex.
Returns current timestamp.
Returns name of database owner (default lexdb).
Places sorted copy of rev table in tmp. Places sorted copy of rev_key in tmp_key. These tables may then be accessed by the client (and placed in a file on client's local filesystem).
Returns t.
Returns filter of user (stored in meta table).
Creates and initializes private schema for user. Registers schema in public.meta.
Returns t if a new schema is created. If the schema already exists, or is the user is the database owner (lexdb), returns f.
Returns set of name field values in lex table.
Returns lexdb_version from meta table.
Returns (ordered) field names for rev tables.
Returns set of name for records in which field has value val.
Returns set of name for records in which field is null.
Call as database owner.Tables tmp_dfn must contain dfn entries to be merged.
Returns number of new entries.
Call as database owner. Tables tmp and tmp_key must contain rev and rev_key entries to be merged.
Updates rev/rev_key tables to include all entries in tmp/tmp_key fields. Register updated modstamp.
Returns number of new entries.
Updates modstamp.
Returns current timestamp.
Returns contents of lex.
Returns entries in lex for with corresponding key in table rev_key.
Returns entries in lex matching name.
TO DO...
- retrieve_head_entry retrieve_private_revs retrieve_semi_extra retrieve_semi_frame retrieve_semi_pred retrieve_semi_var return_field_info2 rev_key_p rev_new semi_out_of_date semi_setup_post semi_setup_pre semi_up_to_date_p
Home | Forum | Discussions | Events