Modules
Standard Library
Third Party Modules
NPM
Docs
Manual
API
Deploy
Community
Discord
GitHub
Twitter
YouTube
Mastodon
Search...
⌘ K
!--frsh-globalsearch:0-->
Module
x
/
pg_mem
/
db.ts
An in memory postgres DB instance for your unit tests
oguimbal/pg-mem
Version
Latest
3.0.3
3.0.2
3.0.1
3.0.0
2.9.1
2.9.0
2.8.1
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.13
2.6.12
2.6.11
2.6.8
2.6.7
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.5.0
2.4.11
2.4.10
2.4.9
2.4.8
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.1
2.4.0
2.3.6
fds
2.3.4
2.3.3
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.9.17
1.9.16
1.9.15
1.9.14
1.9.12
1.9.11
1.9.10
1.9.9
1.9.8
1.9.7
1.9.6
1.9.5
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.5
1.4.4
1.4.3
1.4.2
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.26
1.0.25
!--frsh-versionselect:1-->
Menu
adapters
constraints
datatypes
execution
functions
migrate
misc
parser
schema
transforms
mod.ts
(default module)
c
AdvancedResult
c
AmbiguousColumn
c
CastError
c
ColumnNotFound
c
NotSupported
c
PermissionDeniedError
c
QueryError
c
RecordExists
c
RelationNotFound
c
TypeNotFound
I
ArgDefDetails
I
BindServerOptions
I
BindServerResult
I
ColumnDef
I
CompiledFunctionResult
I
FieldInfo
I
FunctionDefinition
I
IBackup
I
IBoundQuery
I
IEquivalentType
I
IMemoryDb
I
IMemoryTable
I
IndexDef
I
IPreparedQuery
I
ISchema
I
ISubscription
I
IType
I
LibAdapters
I
MemoryDbOptions
I
OperatorDefinition
I
ParameterInfo
I
QueryDescription
I
QueryResult
I
SchemaField
I
SlonikAdapterOptions
I
ToCompile
T
ArgDef
T
CompiledFunction
T
GlobalEvent
T
LanguageCompiler
T
nil
T
PlainResult
T
QueryInterceptor
T
QueryOrAst
T
Schema
T
TableEvent
f
enableStatementLocationTracking
f
newDb
f
replaceQueryArgs$
f
typeDefToStr
E
DataType
column.ts
c
ColRef
db.ts
f
newDb
evaluator.ts
c
Evaluator
I
EvaluatorOptions
v
Value
f
buildParameterList
index.ts
c
AdvancedResult
c
AmbiguousColumn
c
CastError
c
ColumnNotFound
c
NotSupported
c
PermissionDeniedError
c
QueryError
c
RecordExists
c
RelationNotFound
c
TypeNotFound
I
ArgDefDetails
I
BindServerOptions
I
BindServerResult
I
ColumnDef
I
CompiledFunctionResult
I
FieldInfo
I
FunctionDefinition
I
IBackup
I
IBoundQuery
I
IEquivalentType
I
IMemoryDb
I
IMemoryTable
I
IndexDef
I
IPreparedQuery
I
ISchema
I
ISubscription
I
IType
I
LibAdapters
I
MemoryDbOptions
I
OperatorDefinition
I
ParameterInfo
I
QueryDescription
I
QueryResult
I
SchemaField
I
SlonikAdapterOptions
I
ToCompile
T
ArgDef
T
CompiledFunction
T
GlobalEvent
T
LanguageCompiler
T
nil
T
PlainResult
T
QueryInterceptor
T
QueryOrAst
T
Schema
T
TableEvent
f
enableStatementLocationTracking
f
newDb
f
replaceQueryArgs$
f
typeDefToStr
E
DataType
interfaces-private.ts
c
AdvancedResult
c
AmbiguousColumn
c
CastError
c
ColumnNotFound
c
NotSupported
c
PermissionDeniedError
c
QueryError
c
RecordExists
c
RelationNotFound
c
TypeNotFound
I
_Column
I
_Explainer
I
_FunctionDefinition
I
_IAggregation
I
_IAlias
I
_IBoundQuery
I
_IConstraint
I
_IDb
I
_IIndex
I
_INamedIndex
I
_IPreparedQuery
I
_ISchema
I
_ISelection
I
_ISequence
I
_IStatement
I
_IStatementExecutor
I
_ITable
I
_IType
I
_IView
I
_OperatorDefinition
I
_QueryResult
I
_RelationBase
I
_Transaction
I
AggregationComputer
I
AggregationGroupComputer
I
ArgDefDetails
I
BeingCreated
I
BindServerOptions
I
BindServerResult
I
ChangeOpts
I
ColumnDef
I
CompiledFunctionResult
I
CreateIndexColDef
I
CreateIndexDef
I
FieldInfo
I
FunctionDefinition
I
IBackup
I
IBoundQuery
I
IEquivalentType
I
IMemoryDb
I
IMemoryTable
I
IndexDef
I
IndexExpression
I
IPreparedQuery
I
ISchema
I
ISubscription
I
IType
I
IValue
I
LibAdapters
I
MemoryDbOptions
I
OperatorDefinition
I
Parameter
I
ParameterInfo
I
QueryDescription
I
QueryObjOpts
I
QueryResult
I
Reg
I
SchemaField
I
SlonikAdapterOptions
I
StatementResult
I
Stats
I
TableColumnRecordDef
I
TableRecordDef
I
ToCompile
I
TruncateOpts
T
_ArgDefDetails
T
_ExprExplanation
T
_IndexExplanation
T
_IRelation
T
_ISelectable
T
_SelectExplanation
T
ArgDef
T
ChangeHandler
T
CompiledFunction
T
CR
T
DropHandler
T
GlobalEvent
T
IndexHandler
T
IndexKey
T
IndexOp
T
LanguageCompiler
T
nil
T
OnConflictHandler
T
OnStatementExecuted
T
PlainResult
T
QueryInterceptor
T
QueryOrAst
T
RegClass
T
RegType
T
Row
T
Schema
T
TableEvent
T
TR
T
TruncateHandler
T
TypeQuery
v
EmtpyTable
v
GLOBAL_VARS
v
NewColumn
f
asIndex
f
asSelectable
f
asSeq
f
asTable
f
asType
f
asView
f
getId
f
setId
f
typeDefToStr
E
DataType
interfaces.ts
c
AdvancedResult
c
AmbiguousColumn
c
CastError
c
ColumnNotFound
c
NotSupported
c
PermissionDeniedError
c
QueryError
c
RecordExists
c
RelationNotFound
c
TypeNotFound
I
ArgDefDetails
I
BindServerOptions
I
BindServerResult
I
ColumnDef
I
CompiledFunctionResult
I
FieldInfo
I
FunctionDefinition
I
IBackup
I
IBoundQuery
I
IEquivalentType
I
IMemoryDb
I
IMemoryTable
I
IndexDef
I
IPreparedQuery
I
ISchema
I
ISubscription
I
IType
I
LibAdapters
I
MemoryDbOptions
I
OperatorDefinition
I
ParameterInfo
I
QueryDescription
I
QueryResult
I
SchemaField
I
SlonikAdapterOptions
I
ToCompile
T
ArgDef
T
CompiledFunction
T
GlobalEvent
T
LanguageCompiler
T
nil
T
PlainResult
T
QueryInterceptor
T
QueryOrAst
T
Schema
T
TableEvent
f
typeDefToStr
E
DataType
table.ts
c
MemoryTable
transaction.ts
c
Transaction
utils.ts
c
AsyncQueue
c
IteratorHelper
I
Ctor
I
ExecCtx
T
LazySync
T
Optional
T
SRecord
v
delay
v
doRequire
f
asSingleName
f
asSingleQName
f
buildLikeMatcher
f
colByName
f
colToStr
f
combineSubs
f
compareVersions
f
deepCloneSimple
f
deepCompare
f
deepEqual
f
errorMessage
f
executionCtx
f
findTemplate
f
fromEntries
f
hasExecutionCtx
f
hasNullish
f
ignore
f
indexHash
f
intervalToSec
f
isSelectAllArgList
f
isTopLevelExecutionContext
f
isType
f
it
f
lazySync
f
modifyIfNecessary
f
notNil
f
nullIsh
f
parseRegClass
f
parseTime
f
pushExecutionCtx
f
qnameToStr
f
queryJson
f
randomString
f
schemaOf
f
suggestColumnName
f
sum
f
timeoutOrImmediate
f
trimNullish
f
watchUse
import
*
as
mod
from
"https://dotland.deno.dev/x/pg_mem@3.0.3/db.ts"
;
Functions
f
newDb
Why Deno?
Develop Locally
Deploy Globally
Compare to Node.js
Benchmarks
Products
Deno CLI
Deno Deploy
Deploy Subhosting
Fresh
SaaSKit
Sources
CLI Manual
CLI Runtime API
Deploy Docs
Standard Library
Third-Party Modules
Community
Artworks
Translations
Showcase
Company
Careers
Blog
Pricing
News
Merch
Privacy Policy
Copyright © 2023 Deno Land Inc.
All rights reserved.