<commit_before>-----------------------------------------------------------
-- |
-- Module      :  Database.HaskellDB.Sql.SQLite
-- Copyright   :  <NAME> 2006
-- License     :  BSD-style
-- 
-- Maintainer  :  <EMAIL>
-- Stability   :  experimental
-- Portability :  non-portable
-- 
-- SQL generation for SQLite.
-- See <http://www.sqlite.org/lang.html> for documentation.
-- 
-----------------------------------------------------------
module Database.HaskellDB.Sql.SQLite (generator) where

import Database.HaskellDB.Sql.Default
import Database.HaskellDB.Sql.Generate
import Database.HaskellDB.PrimQuery

generator :: SqlGenerator
generator = mkSqlGenerator generator 
            {
             sqlLiteral = literal
            }

literal :: Literal -> String
literal (StringLit s) = quote s
literal l = defaultSqlLiteral generator l<commit_msg>For SQLite default values render now to NULL.<commit_after>-----------------------------------------------------------
-- |
-- Module      :  Database.HaskellDB.Sql.SQLite
-- Copyright   :  <NAME> 2006
-- License     :  BSD-style
-- 
-- Maintainer  :  <EMAIL>
-- Stability   :  experimental
-- Portability :  non-portable
-- 
-- SQL generation for SQLite.
-- See <http://www.sqlite.org/lang.html> for documentation.
-- 
-----------------------------------------------------------
module Database.HaskellDB.Sql.SQLite (generator) where

import Database.HaskellDB.Sql.Default
import Database.HaskellDB.Sql.Generate
import Database.HaskellDB.PrimQuery

generator :: SqlGenerator
generator = mkSqlGenerator generator 
            {
             sqlLiteral = literal
            }

literal :: Literal -> String
literal (StringLit s) = quote s
literal DefaultLit = "NULL"
literal l = defaultSqlLiteral generator l
{'fraction_non_alphanumeric': 0.2291904218928164, 'fraction_numerical': 0.004561003420752566, 'mean_word_length': 1.763779527559055, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5091364', 'n_tokens_mistral': 474, 'n_tokens_neox': 448, 'n_words': 113}