napkin-backend-mssql-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.MsSql

Documentation

withMsSqlString :: MonadIO m => LogEnv -> Natural -> Text -> (BackendConn MsSql -> m b) -> m b #

retryDeadLockVictim :: forall q a m. (MonadNapkin MsSql m, RenderSql q MsSql) => (q -> IO a) -> q -> m a #

query :: forall q a m. (FromRow a, MonadNapkin MsSql m, RenderSql q MsSql) => BackendConn MsSql -> q -> m [a] #

refFqTable :: forall {k} (a :: k). Ref a -> (Text, Text) #

Orphan instances

Backend MsSql # 
Instance details

Methods

backendConnectionString :: BackendConn MsSql -> ConnectionString #

backendExecute :: (MonadNapkin MsSql m, RenderSql command MsSql) => BackendConn MsSql -> command -> m () #

backendQuery :: (MonadNapkin MsSql m, RenderSql q MsSql) => BackendConn MsSql -> q -> m [Map Text Value] #

backendCheckTableExists :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m Bool #

backendGetTableKind :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m TableKind #

backendGetRelationSchema :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> Relation -> m [BackendSchemaField MsSql] #

backendGetAnnotations :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m TableAnnotations #

backendAnnotate :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> Annotation -> m () #

backendCreateAs :: (command ~ CreateRelation MsSql, RenderSql command MsSql, MonadNapkin MsSql m) => BackendConn MsSql -> command -> m () #

backendCreate :: (command ~ CreateTableSchema MsSql, RenderSql command MsSql, MonadNapkin MsSql m) => BackendConn MsSql -> command -> m () #

backendCopyTable :: (MonadNapkin MsSql m, RenderSql DeleteRows MsSql, RenderSql InsertInto MsSql, RenderSql (CreateRelation MsSql) MsSql, Default (BackendMeta 'KindTable MsSql)) => BackendConn MsSql -> Ref Table -> Ref Table -> TableWriteStrategy -> m () #

backendDrop :: MonadNapkin MsSql m => BackendConn MsSql -> DropRelation -> m () #

backendInsertInto :: (command ~ InsertInto, RenderSql command MsSql, MonadNapkin MsSql m) => BackendConn MsSql -> command -> m () #

backendRename :: MonadNapkin MsSql m => BackendConn MsSql -> RenameRelation -> m () #

backendListTables :: MonadNapkin MsSql m => BackendConn MsSql -> ListTables -> m (Set ListedTable) #

backendNormalize :: MonadNapkin MsSql m => BackendConn MsSql -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) #

RunBackendConn MsSql # 
Instance details

FromRow TableKind # 
Instance details

FromRow AnnotationRow # 
Instance details

CSVImport MsSql # 
Instance details

HasBackendSchemaField MsSql # 
Instance details

Associated Types

data BackendSchemaField MsSql 
Instance details

Defined in Napkin.Run.MsSql

HasBackendQueryStats MsSql # 
Instance details

Associated Types

data BackendQueryStats MsSql 
Instance details

Defined in Napkin.Run.MsSql

FromJSON (DbBackendOptions MsSql) # 
Instance details

Default (DbBackendOptions MsSql) # 
Instance details

Generic (DbBackendOptions MsSql) # 
Instance details

Associated Types

type Rep (DbBackendOptions MsSql) 
Instance details

Defined in Napkin.Run.MsSql

type Rep (DbBackendOptions MsSql) = D1 ('MetaData "DbBackendOptions" "Napkin.Run.MsSql" "napkin-backend-mssql-2.0.0-DUZ2oAOWMDC4ldwnbKmiTf" 'True) (C1 ('MetaCons "MsSqlOptions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))
Show (DbBackendOptions MsSql) # 
Instance details

Eq (DbBackendOptions MsSql) # 
Instance details

FromJSON (BackendQueryStats MsSql) # 
Instance details

ToJSON (BackendQueryStats MsSql) # 
Instance details

Monoid (BackendQueryStats MsSql) # 
Instance details

Semigroup (BackendQueryStats MsSql) # 
Instance details

Generic (BackendQueryStats MsSql) # 
Instance details

Associated Types

type Rep (BackendQueryStats MsSql) 
Instance details

Defined in Napkin.Run.MsSql

type Rep (BackendQueryStats MsSql) = D1 ('MetaData "BackendQueryStats" "Napkin.Run.MsSql" "napkin-backend-mssql-2.0.0-DUZ2oAOWMDC4ldwnbKmiTf" 'False) (C1 ('MetaCons "BackendQueryStats" 'PrefixI 'False) (U1 :: Type -> Type))
Show (BackendSchemaField MsSql) # 
Instance details

Show (BackendQueryStats MsSql) # 
Instance details

Eq (BackendSchemaField MsSql) # 
Instance details

Eq (BackendQueryStats MsSql) # 
Instance details