diff --git a/sources/29-web2py-english/06.markmin b/sources/29-web2py-english/06.markmin index 3c2fe1d5..90ce1b53 100644 --- a/sources/29-web2py-english/06.markmin +++ b/sources/29-web2py-english/06.markmin @@ -198,6 +198,8 @@ db = DAL('sqlite://storage.sqlite', pool_size=0) **Google/NoSQL/NDB** | ``google:datastore+ndb`` ------------- +To connect via unix socket, use a string like the following: ``postgres://username:password@/test?unix_socket=/path/to/socket`` + Notice that in SQLite the database consists of a single file. If it does not exist, it is created. This file is locked every time it is accessed. In the case of MySQL, PostgreSQL, MSSQL, FireBird, Oracle, DB2, Ingres and Informix the database "test" must be created outside web2py. Once the connection is established, web2py will create, alter, and drop tables appropriately. In the MySQL connection string, the ``?set_encoding=utf8mb4`` at the end sets the encoding to UTF-8 and avoids an ``Invalid utf8 character string:`` error on Unicode characters that consist of four bytes, as by default, MySQL can only handle Unicode characters that consist of one to three bytes. ``mathiasbyensbe``:cite @@ -4880,4 +4882,4 @@ and some optional fields: } `` -The exact specs are subject to change since this is a new feature. \ No newline at end of file +The exact specs are subject to change since this is a new feature.