API Reference

Main

open()

Open an existing MIKE+ model database.

create()

Create a new MIKE+ model database.

to_sql()

Convert a Python value to its SQL string representation.

Database

Database

Represents a MIKE+ model database.

DatabaseError

Raised when a MIKE+ database operation fails.

tables.TableCollection

Collection of auto-generated table classes for MIKE+ database tables.

Queries

Returned by the select, insert, update and delete methods of a table.

queries.BaseQuery

Base class for all query types.

queries.SelectQuery

Query class for SELECT operations.

queries.InsertQuery

Query class for INSERT operations.

queries.UpdateQuery

Query class for UPDATE operations.

queries.DeleteQuery

Query class for DELETE operations.

Scenarios

Returned by Database.scenarios and Database.alternative_groups.

scenarios.ScenarioCollection

Collection-like access to scenarios in the database.

scenarios.Scenario

Represents a scenario in the MIKE+ model.

scenarios.AlternativeGroupCollection

Collection-like access to alternative groups.

scenarios.AlternativeGroup

Represents an alternative group with collection-like access to alternatives.

scenarios.Alternative

Represents an alternative in the MIKE+ model.

Table base classes

Shared by every table in Database.tables.

tables.BaseTable

Base class representing a database table.

tables.BaseGeometryTable

Base class representing a database table with geometry.

tables.BaseNodeTable

Base class representing a database table with node-based geometry.

tables.BaseColumns

Base class for column enumeration-like access.

tables.BaseTableCollection

A dict-like collection of tables in a model database.

Tools

tools.ImportTool

The Import Tool from MIKE+.

tools.InterpolationTool

The Interpolation and Assignment tool from MIKE+.

tools.TopoRepairTool

Topology repair tool for MIKE+.

tools.ConnectionRepairTool

The Connection Repair Tool from MIKE+.

tools.CreateValvesFromPointsTool

The Create Valves from Point Locations tool from MIKE+ (water distribution only).

tools.DemandConnectionTool

The connection tool from MIKE+ for demand allocations.

tools.DemandAggregationTool

The demand Aggregation tool from MIKE+ water distribution.

tools.CathSlopeLengthProcess

The Catchment Slope Length Process tool from MIKE+.

Utilities

utilities.get_nearest_river_at()

Get the name of the river nearest to a point.

utilities.get_nearest_river_chainage_at()

Get the river and chainage nearest to a point.