xmldb-driver

command
v0.63.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

XMLDB Driver Example

This example demonstrates how to use Neat's xmldb driver to point at a directory of XML files and query them as database tables.

The directory serves as the database, and each .xml file is represented as a table named after its filename (without the extension). Attributes and leaf sub-elements across the rows define the column schema, with type inference and widening done automatically.

Files

  • data/users.xml: A standard XML file containing <user> entries ("users" table).
  • data/products.xml: A standard XML file containing <product> entries ("products" table).
  • data/orders.xml: A standard XML file containing <order> entries ("orders" table).

How to Run

You can run this example using the standard Go toolchain:

go run examples/xmldb-driver/main.go

Running the Tests

To run the unit tests for this example:

go test -v ./examples/xmldb-driver/...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL