Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load with Glorp? #108

Open
labordep opened this issue Jan 20, 2024 · 1 comment
Open

How to load with Glorp? #108

labordep opened this issue Jan 20, 2024 · 1 comment

Comments

@labordep
Copy link

labordep commented Jan 20, 2024

Hi,

I'm attempting to simply load this project with Glorp, but unfortunately, I'm unable to do so :(

  1. When I load using this order I have an Iceberg exception "MetacelloConflictingProjectError: Load Conflict between existing BaselineOfGlorp [baseline] from github://pharo-rdbms/glorp and BaselineOfGlorp [baseline] from github://pharo-rdbms/glorp:v9.0.6/" :
Metacello new
	repository: 'github://pharo-rdbms/glorp';
	baseline: 'Glorp';
	load.

Metacello new
  repository: 'github://pharo-rdbms/Pharo-SQLite3/src';
  baseline: 'SQLite3';
  load.

image

And this is not possible to proceed the loading...

  1. When I load only this project...
Metacello new
  repository: 'github://pharo-rdbms/Pharo-SQLite3/src';
  baseline: 'SQLite3';
  load.

...and after I try to load manually "Glorp" packages:

image

I have this error:

Warning: Package *SQLite3-Glorp depends on the following classes:
  DatabaseDriver
You must resolve these dependencies before you will be able to load these definitions: 
  SQLite3Driver
  SQLite3Driver>>#basicExecuteSQLString:
  SQLite3Driver>>#basicExecuteSQLString:binding:
  SQLite3Driver>>#beginTransaction
  SQLite3Driver>>#commitTransaction
  SQLite3Driver>>#connect:
  SQLite3Driver>>#connectionClass
  SQLite3Driver>>#initialize
  SQLite3Driver>>#isConnected
  SQLite3Driver>>#logout
  SQLite3Driver>>#rollbackTransaction
  SQLite3Driver>>#rowCount

So how to load Glorp+Pharo-SQLite3 with Glorp package correctly ?
How to integrate that in my project baselineOf ?

I have a naive approach to try to make it as clear as possible for beginners.
Thanks :)

@labordep
Copy link
Author

@gcotelli propose to use this:

Metacello new
  repository: 'github://pharo-rdbms/Pharo-SQLite3/src';
  baseline: 'SQLite3';
  load:#('Core' 'glorp')

I need to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant