Şöyle yaparız. Burada mapping name ile database + collection name farklı
CREATE MAPPING people EXTERNAL NAME "database"."collectionName" ( id OBJECT EXTERNAL NAME _id firstName VARCHAR, lastName VARCHAR, employed BOOLEAN ) TYPE Mongo OPTIONS ( 'connectionString' = 'mongodb://127.0.0.1:27017' );
Örnek
Şöyle yaparız
CREATE MAPPING mydetails ( id OBJECT EXTERNAL NAME _id,
first_name VARCHAR,
last_name VARCHAR ) TYPE Mongo OPTIONS ( 'connectionString' = 'mongodb://127.0.0.1:27017', );
Hiç yorum yok:
Yorum Gönder