Debian Codegraph @

src/main/org/h2/api/TableEngine.java

raw
1 /*
2 * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (https://h2database.com/html/license.html).
4 * Initial Developer: H2 Group
5 */
6 package org.h2.api;
7
8 import org.h2.command.ddl.CreateTableData;
9 import org.h2.table.Table;
10
11 /**
12 * A class that implements this interface can create custom table
13 * implementations.
14 *
15 * @author Sergi Vladykin
16 */
17 public interface TableEngine {
18
19 /**
20 * Create new table.
21 *
22 * @param data the data to construct the table
23 * @return the created table
24 */
25 Table createTable(CreateTableData data);
26
27 }