Small. Fast. Reliable.
Choose any three.
*** 36,41 ****
--- 36,54 ----
  Alex K.
  ----
  
+ Reply to the above: model strings as a discriminated union like so:
+ 
+ union nullable_string switch (bool isnull) {
+ case TRUE:
+         void;
+ case FALSE:
+         opaque string_value<>;
+ };
+ 
+ Nico W.
+ -------
+ 
+ 
  I have some input on a network protocol for sqlite too (and may actually
  implement it).
  
***************
*** 153,158 ****
--- 166,177 ----
  30.04.2004 / Dan
  ----
  
+ Response to the above: ONC RPC does not imply using the ONC RPC portmapper (rpcbind).  You can use ONC RPC with well-known ports.  NFSv4 does, for example (port 2049).
+ 
+ Nico W.
+ -------
+ 
+ 
  Please consider Tabular Data Stream (TDS) protocol. This is the protocol used by Sybase and MS SQL Server. If you make the wire protocol TDS, then you can use many of the client tools available for SQL Server, etc., including FreeTDS and JDBC.
  
  From the FreeTDS web site:
***************
*** 196,198 ****
--- 215,225 ----
  http://sqlrelay.sourceforge.net/
  
  You can build it with SQLite and it has its own API.
+ 
+ 
+ ----
+ 
+ For security consider running the protocol over SSHv2 as a subsystem, or else consider using the GSS-API or SASL (if you use ONC RPC then use RPCSEC_GSS).
+ 
+ Nico W.
+ -------