-
Notifications
You must be signed in to change notification settings - Fork 354
/
Aliases.scala
94 lines (72 loc) · 4.71 KB
/
Aliases.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Copyright (c) 2013-2020 Rob Norris and Contributors
// This software is licensed under the MIT License (MIT).
// For more information see LICENSE or https://opensource.org/licenses/MIT
package doobie.free
import cats.{Monoid, Semigroup}
import doobie.WeakAsync
trait Types {
/** @group Type Aliases - Free API */ type BlobIO[A] = blob.BlobIO[A]
/** @group Type Aliases - Free API */ type CallableStatementIO[A] = callablestatement.CallableStatementIO[A]
/** @group Type Aliases - Free API */ type ClobIO[A] = clob.ClobIO[A]
/** @group Type Aliases - Free API */ type ConnectionIO[A] = connection.ConnectionIO[A]
/** @group Type Aliases - Free API */ type DatabaseMetaDataIO[A] = databasemetadata.DatabaseMetaDataIO[A]
/** @group Type Aliases - Free API */ type DriverIO[A] = driver.DriverIO[A]
/** @group Type Aliases - Free API */ type NClobIO[A] = nclob.NClobIO[A]
/** @group Type Aliases - Free API */ type PreparedStatementIO[A] = preparedstatement.PreparedStatementIO[A]
/** @group Type Aliases - Free API */ type RefIO[A] = ref.RefIO[A]
/** @group Type Aliases - Free API */ type ResultSetIO[A] = resultset.ResultSetIO[A]
/** @group Type Aliases - Free API */ type SQLDataIO[A] = sqldata.SQLDataIO[A]
/** @group Type Aliases - Free API */ type SQLInputIO[A] = sqlinput.SQLInputIO[A]
/** @group Type Aliases - Free API */ type SQLOutputIO[A] = sqloutput.SQLOutputIO[A]
/** @group Type Aliases - Free API */ type StatementIO[A] = statement.StatementIO[A]
}
trait Modules {
/** @group Module Aliases - Free API */ lazy val FB = blob
/** @group Module Aliases - Free API */ lazy val FCS = callablestatement
/** @group Module Aliases - Free API */ lazy val FCL = clob
/** @group Module Aliases - Free API */ lazy val FC = connection
/** @group Module Aliases - Free API */ lazy val FDMD = databasemetadata
/** @group Module Aliases - Free API */ lazy val FD = driver
/** @group Module Aliases - Free API */ lazy val FNCL = nclob
/** @group Module Aliases - Free API */ lazy val FPS = preparedstatement
/** @group Module Aliases - Free API */ lazy val FREF = ref
/** @group Module Aliases - Free API */ lazy val FRS = resultset
/** @group Module Aliases - Free API */ lazy val FSD = sqldata
/** @group Module Aliases - Free API */ lazy val FSI = sqlinput
/** @group Module Aliases - Free API */ lazy val FSO = sqloutput
/** @group Module Aliases - Free API */ lazy val FS = statement
}
trait Instances {
/** @group Typeclass Instances */ implicit lazy val WeakAsyncBlobIO: WeakAsync[BlobIO] =
blob.WeakAsyncBlobIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncCallableStatementIO: WeakAsync[CallableStatementIO] =
callablestatement.WeakAsyncCallableStatementIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncClobIO: WeakAsync[ClobIO] =
clob.WeakAsyncClobIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncConnectionIO: WeakAsync[ConnectionIO] =
connection.WeakAsyncConnectionIO
/** @group Typeclass Instances */ implicit def MonoidConnectionIO[A: Monoid]: Monoid[ConnectionIO[A]] =
connection.MonoidConnectionIO[A]
/** @group Typeclass Instances */ implicit def SemigroupConnectionIO[A: Semigroup]: Semigroup[ConnectionIO[A]] =
connection.SemigroupConnectionIO[A]
/** @group Typeclass Instances */ implicit lazy val WeakAsyncDatabaseMetaDataIO: WeakAsync[DatabaseMetaDataIO] =
databasemetadata.WeakAsyncDatabaseMetaDataIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncDriverIO: WeakAsync[DriverIO] =
driver.WeakAsyncDriverIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncNClobIO: WeakAsync[NClobIO] =
nclob.WeakAsyncNClobIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncPreparedStatementIO: WeakAsync[PreparedStatementIO] =
preparedstatement.WeakAsyncPreparedStatementIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncRefIO: WeakAsync[RefIO] =
ref.WeakAsyncRefIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncResultSetIO: WeakAsync[ResultSetIO] =
resultset.WeakAsyncResultSetIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncSQLDataIO: WeakAsync[SQLDataIO] =
sqldata.WeakAsyncSQLDataIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncSQLInputIO: WeakAsync[SQLInputIO] =
sqlinput.WeakAsyncSQLInputIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncSQLOutputIO: WeakAsync[SQLOutputIO] =
sqloutput.WeakAsyncSQLOutputIO
/** @group Typeclass Instances */ implicit lazy val WeakAsyncStatementIO: WeakAsync[StatementIO] =
statement.WeakAsyncStatementIO
}