mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
move spec and src files to a shardy way
This commit is contained in:
parent
928c1517dc
commit
44559f6f95
7 changed files with 15 additions and 19 deletions
|
@ -1,6 +1,4 @@
|
|||
require "spec"
|
||||
require "db"
|
||||
require "./dummy_driver"
|
||||
require "./spec_helper"
|
||||
|
||||
private def connections
|
||||
DummyDriver::DummyConnection.connections
|
|
@ -1,4 +1,5 @@
|
|||
require "spec"
|
||||
require "../src/db"
|
||||
|
||||
class DummyDriver < DB::Driver
|
||||
def build_connection(db : DB::Database) : DB::Connection
|
|
@ -1,6 +1,4 @@
|
|||
require "spec"
|
||||
require "db"
|
||||
require "./dummy_driver"
|
||||
require "./spec_helper"
|
||||
|
||||
describe DummyDriver do
|
||||
it "with_dummy executes the block with a database" do
|
|
@ -1,6 +1,4 @@
|
|||
require "spec"
|
||||
require "db"
|
||||
require "./dummy_driver"
|
||||
require "./spec_helper"
|
||||
|
||||
describe DB::ResultSet do
|
||||
it "should enumerate records using each" do
|
3
spec/spec_helper.cr
Normal file
3
spec/spec_helper.cr
Normal file
|
@ -0,0 +1,3 @@
|
|||
require "spec"
|
||||
require "./dummy_driver"
|
||||
require "../src/db"
|
|
@ -1,6 +1,4 @@
|
|||
require "spec"
|
||||
require "db"
|
||||
require "./dummy_driver"
|
||||
require "./spec_helper"
|
||||
|
||||
describe DB::Statement do
|
||||
it "should prepare statements" do
|
|
@ -118,10 +118,10 @@ module DB
|
|||
end
|
||||
end
|
||||
|
||||
require "./query_methods"
|
||||
require "./disposable"
|
||||
require "./database"
|
||||
require "./driver"
|
||||
require "./connection"
|
||||
require "./statement"
|
||||
require "./result_set"
|
||||
require "./db/query_methods"
|
||||
require "./db/disposable"
|
||||
require "./db/database"
|
||||
require "./db/driver"
|
||||
require "./db/connection"
|
||||
require "./db/statement"
|
||||
require "./db/result_set"
|
Loading…
Reference in a new issue