提交 9a808b19 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 fd46653c
...@@ -1536,7 +1536,8 @@ AES ...@@ -1536,7 +1536,8 @@ AES
"Other Grammar","Column Definition"," "Other Grammar","Column Definition","
columnName dataType { DEFAULT expression | AS computedColumnExpression } [ [ NOT ] NULL ] columnName dataType { DEFAULT expression | AS computedColumnExpression } [ [ NOT ] NULL ]
[ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ] [ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ]
[ SELECTIVITY selectivity ] [ PRIMARY KEY [ HASH ] | UNIQUE ] [ SELECTIVITY selectivity ] [ COMMENT expression ]
[ PRIMARY KEY [ HASH ] | UNIQUE ] [ CHECK condition ]
"," ","
Default expressions are used if no explicit value was used when adding a row. Default expressions are used if no explicit value was used when adding a row.
The computed column expression is evaluated and assigned whenever the row changes. The computed column expression is evaluated and assigned whenever the row changes.
...@@ -1613,7 +1614,7 @@ LIKE 'Jo%' ...@@ -1613,7 +1614,7 @@ LIKE 'Jo%'
"," ","
Defines a constraint. Defines a constraint.
The check condition must evaluate to TRUE, FALSE or NULL. The check condition must evaluate to TRUE, FALSE or NULL.
TRUE and NULL mean the operation is to be permitted, TRUE and NULL mean the operation is to be permitted,
and FALSE means the operation is to be rejected. and FALSE means the operation is to be rejected.
To prevent NULL in a column, use NOT NULL instead of a check constraint. To prevent NULL in a column, use NOT NULL instead of a check constraint.
"," ","
......
...@@ -18,13 +18,13 @@ Change Log ...@@ -18,13 +18,13 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>New experimental feature "SHUTDOWN DEFRAG". This option optimizes the page layout so <ul><li>New experimental feature SHUTDOWN DEFRAG.
that a full table scan is faster. This option re-orders the pages while closing the database so that table scans are faster.
</li><li>When using the MULTI_THREADED option, concurrently reading from a database </li><li>When using the MULTI_THREADED option, concurrently reading from a database
(specially from a larger database, or when using a small cache size) could throw an exception. (specially from a larger database, or when using a small cache size) could throw an exception.
</li><li>When adding a comment to a column that has a check constraint, </li><li>When adding a comment to a column that has a check constraint,
the database couldn't be re-opened. the database couldn't be re-opened.
</li><li>New system property h2.lobClientMaxSizeMemory to set the maximum size </li><li>New system property h2.lobClientMaxSizeMemory to set the maximum size
of a LOB object to keep in memory on the client side when using the server mode. of a LOB object to keep in memory on the client side when using the server mode.
</li></ul> </li></ul>
......
...@@ -375,7 +375,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -375,7 +375,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>MySQL compatibility: support ALTER TABLE .. MODIFY COLUMN. </li><li>MySQL compatibility: support ALTER TABLE .. MODIFY COLUMN.
</li><li>Use a lazy and auto-close input stream (open resource when reading, close on eof). </li><li>Use a lazy and auto-close input stream (open resource when reading, close on eof).
</li><li>PostgreSQL compatibility: generate_series. </li><li>PostgreSQL compatibility: generate_series.
</li><li>Connection pool: 'reset session' command (delete temp tables, rollback, autocommit true). </li><li>Connection pool: 'reset session' command (delete temp tables, rollback, auto-commit true).
</li><li>Improve SQL documentation, see http://www.w3schools.com/sql/ </li><li>Improve SQL documentation, see http://www.w3schools.com/sql/
</li><li>MySQL compatibility: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL. </li><li>MySQL compatibility: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL.
</li><li>MS SQL Server compatibility: support DATEPART syntax. </li><li>MS SQL Server compatibility: support DATEPART syntax.
...@@ -523,7 +523,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -523,7 +523,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Column as parameter of function table. Issue 228. </li><li>Column as parameter of function table. Issue 228.
</li><li>Support -webPassword to require a password to shutdown the H2 Console. </li><li>Support -webPassword to require a password to shutdown the H2 Console.
</li><li>Connection pool: detect ;AUTOCOMMIT=FALSE in the database URL, and if set, </li><li>Connection pool: detect ;AUTOCOMMIT=FALSE in the database URL, and if set,
disable autoconnect for all connections. disable autocommit for all connections.
</li></ul> </li></ul>
<h2>Not Planned</h2> <h2>Not Planned</h2>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -208,6 +208,12 @@ public class SessionRemote extends SessionWithState implements DataHandler { ...@@ -208,6 +208,12 @@ public class SessionRemote extends SessionWithState implements DataHandler {
throw DbException.getUnsupportedException("remote"); throw DbException.getUnsupportedException("remote");
} }
/**
* Open a new (remote or embedded) session.
*
* @param ci the connection info
* @return the session
*/
public SessionInterface createSession(ConnectionInfo ci) { public SessionInterface createSession(ConnectionInfo ci) {
return new SessionRemote(ci).connectEmbeddedOrServer(false); return new SessionRemote(ci).connectEmbeddedOrServer(false);
} }
......
...@@ -505,7 +505,8 @@ Two algorithms are supported: AES (AES-128) and XTEA (using 32 rounds)." ...@@ -505,7 +505,8 @@ Two algorithms are supported: AES (AES-128) and XTEA (using 32 rounds)."
"Other Grammar","Column Definition"," "Other Grammar","Column Definition","
columnName dataType { DEFAULT expression | AS computedColumnExpression } [ [ NOT ] NULL ] columnName dataType { DEFAULT expression | AS computedColumnExpression } [ [ NOT ] NULL ]
[ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ] [ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ]
[ SELECTIVITY selectivity ] [ PRIMARY KEY [ HASH ] | UNIQUE ] [ SELECTIVITY selectivity ] [ COMMENT expression ]
[ PRIMARY KEY [ HASH ] | UNIQUE ] [ CHECK condition ]
"," ","
Default expressions are used if no explicit value was used when adding a row." Default expressions are used if no explicit value was used when adding a row."
"Other Grammar","Comments"," "Other Grammar","Comments","
......
...@@ -656,4 +656,4 @@ arrangements bugfix premain longs majority crashing behaving inst inventor ...@@ -656,4 +656,4 @@ arrangements bugfix premain longs majority crashing behaving inst inventor
javaagent park accurately adopt consists night equally enhance enhanced javaagent park accurately adopt consists night equally enhance enhanced
skiing honor marketing sleeping dlucene timezones shifted analyzed insists skiing honor marketing sleeping dlucene timezones shifted analyzed insists
train joining bilingual existed extremely fog bordercolor overlapping train joining bilingual existed extremely fog bordercolor overlapping
unlocking webkit dalvik unlocking webkit dalvik recorded defrag
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论