renamed schema to repository
This commit is contained in:
+5
-5
@@ -17,7 +17,7 @@
|
||||
#include "work/jobs/IdListPayload.hpp"
|
||||
|
||||
#include "matador/utils/default_type_traits.hpp"
|
||||
#include "matador/object/schema.hpp"
|
||||
#include "matador/object/repository.hpp"
|
||||
|
||||
#include "matador/sql/connection.hpp"
|
||||
|
||||
@@ -76,11 +76,11 @@ int main() {
|
||||
// sql::connection_pool<sql::connection> pool("postgres://news:news@127.0.0.1:15432/matador", 4);
|
||||
sql::connection_pool pool("postgres://test:test123!@127.0.0.1:5432/matador", 4);
|
||||
|
||||
object::schema admin_schema("Administration");
|
||||
object::repository repo("Administration");
|
||||
|
||||
auto result = admin_schema.attach<admin::CollectionCenter>("collection_centers");
|
||||
admin_schema.create(pool);
|
||||
admin_schema.drop(pool);
|
||||
auto result = repo.attach<admin::CollectionCenter>("collection_centers");
|
||||
repo.create(pool);
|
||||
repo.drop(pool);
|
||||
|
||||
orm::session ses(pool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user