Difference between revisions of "Java Examples"

From BaseX Documentation
Jump to navigation Jump to search
Line 7: Line 7:
 
;[[WikiExample]]
 
;[[WikiExample]]
 
:creates a database from a url (wiki instance), runs a queries against it and drops the database.
 
:creates a database from a url (wiki instance), runs a queries against it and drops the database.
 +
 +
;[[RunQueries]]
 +
:shows three variants of running queries.
  
 
==Server Examples==
 
==Server Examples==

Revision as of 12:56, 7 January 2011

The following Java code snippets demonstrate how easy it is to run database commands, create collections, perform queries, etc. via the BaseX API:

Local Examples

RunCommands
creates and drops database and index instances and prints a list of all existing databases.
WikiExample
creates a database from a url (wiki instance), runs a queries against it and drops the database.
RunQueries
shows three variants of running queries.

Server Examples

XQJ API Example

XML:DB API Examples