Class: BetterAuth::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/better_auth/adapters/base.rb

Direct Known Subclasses

Memory, MongoDB, SQL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/better_auth/adapters/base.rb', line 8

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/better_auth/adapters/base.rb', line 6

def options
  @options
end

Instance Method Details

#countObject

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/better_auth/adapters/base.rb', line 40

def count(**)
  raise NotImplementedError
end

#createObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/better_auth/adapters/base.rb', line 12

def create(**)
  raise NotImplementedError
end

#deleteObject

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/better_auth/adapters/base.rb', line 32

def delete(**)
  raise NotImplementedError
end

#delete_manyObject

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/better_auth/adapters/base.rb', line 36

def delete_many(**)
  raise NotImplementedError
end

#find_manyObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/better_auth/adapters/base.rb', line 20

def find_many(**)
  raise NotImplementedError
end

#find_oneObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/better_auth/adapters/base.rb', line 16

def find_one(**)
  raise NotImplementedError
end

#transaction {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



44
45
46
# File 'lib/better_auth/adapters/base.rb', line 44

def transaction
  yield self
end

#updateObject

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/better_auth/adapters/base.rb', line 24

def update(**)
  raise NotImplementedError
end

#update_manyObject

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/better_auth/adapters/base.rb', line 28

def update_many(**)
  raise NotImplementedError
end