Package com.codename1.db.sql
package com.codename1.db.sql
Database servers over their own wire protocols, with no JDBC driver:
Postgres, MySql, SqlServer and Oracle, each a ServerSession.
Dialect renders one portable statement form for whichever engine a
session reaches.
An application carries only the engines it names. On the client, construct
one of the com.codename1.db.ServerDatabase subclasses; on the server, the
backend's Database opens the engines its declared URLs name.
-
ClassDescriptionWhat the three engines spell differently, in one place.The server engines a database URL can name: their schemes, canonical names and default ports.A MySQL client speaking the client/server protocol directly, for the same reason as
Postgres: a translated server binary has no JDBC.An Oracle Database client speaking TNS and TTC, the protocol of Oracle's own "thin" drivers.A PostgreSQL client speaking the v3 frontend/backend protocol directly.Opens sessions for one engine.A database error that a caller can act on: a transaction that lost a race with another one (SqlFailure.CONCURRENCY) or a write a constraint refused (SqlFailure.INTEGRITY).What the wire clients need from the target they run on: a socket, random bytes, and the exceptions a caller catches.A SQL Server client speaking TDS 7.4, the Tabular Data Stream, written from Microsoft's published MS-TDS specification.A connection to a database server, as the wire clients in this package see it.The transaction isolation a caller asks a wire client for.