SQLite3.Type

represent all the SQLite types we can represent.

The constructors are Null, Integer, Floating, Text, and Blob. Most primitive Carp types can be casted to appropriate SQLite types by using the to-sqlite3 interface.

=

defn

(Fn [(Ref SQLite3.Type a), (Ref SQLite3.Type a)] Bool)

                        (= a b)
                    

Blob

instantiate

(Fn [String] SQLite3.Type)

creates a Blob.

Floating

instantiate

(Fn [Double] SQLite3.Type)

creates a Floating.

Integer

instantiate

(Fn [Long] SQLite3.Type)

creates a Integer.

Null

instantiate

(Fn [] SQLite3.Type)

creates a Null.

SQLiteColumn

module

Module

Text

instantiate

(Fn [String] SQLite3.Type)

creates a Text.

copy

instantiate

(Fn [(Ref SQLite3.Type a)] SQLite3.Type)

copies a Type.

delete

instantiate

(Fn [SQLite3.Type] ())

deletes a SQLite3.Type. This should usually not be called manually.

get-tag

instantiate

(Fn [(Ref SQLite3.Type a)] Int)

Gets the tag from a Type.

prn

defn

(Fn [(Ref SQLite3.Type a)] String)

                        (prn s)
                    

converts a SQLite3.Type to a string.

str

instantiate

(Fn [(Ref SQLite3.Type a)] String)

converts a SQLite3.Type to a string.

to-sqlite3-internal

defn

(Fn [SQLite3.Type] SQLiteColumn)

                        (to-sqlite3-internal x)