Grafoscopio

Artifact [99eb3efaec]
Login

Artifact 99eb3efaec50ec07b7e2fc628c26878e6cae3947:

Wiki page [SQLite] by offray 2016-02-23 02:27:51.
D 2016-02-23T02:27:51.545
L SQLite
N text/x-markdown
U offray
W 1335
# SQLite

[SQLite](http://sqlite.org/) es un motor de bases de datos liviano y autocontenido que está desplegado en una gran cantidad de dispositivos y lugares (es quizás el motor de bases de datos de mayor despliegue en el mundo). Se puede usar para varias operaciones con datos, con una configuración mínima y muy buen desempeño.

Debido a que sólo hasta abril de 2016 Pharo soportará nativamente 64 bits, para integrar SQLite a Grafoscopio, se debe instalar la versión de 32 bits de SQLite, luego instalar `NBSQlite` desde el `spotter` y finalmente hacer esta corrección en el código fuente:

Cambiar


    apiBindInteger: aStatement atColumn: aColumn with: anInteger
      "int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite_int64)"
      <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode>
      ^ self nbCall: #(int sqlite3_bind_int64 (sqlite3_stmt aStatement, int aColumn, int anInteger))
        module: self library


por:

    apiBindInteger: aStatement atColumn: aColumn with: anInteger
      "int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite_int64)"
      <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode>
      ^ self nbCall: #(int sqlite3_bind_int64 (sqlite3_stmt aStatement, int aColumn, int anInteger))
        module: self library

Z 927b96a7eb25a153200a1d4a438151c3