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

Save array/list #29

Open
pyankoff opened this issue Jan 27, 2016 · 3 comments
Open

Save array/list #29

pyankoff opened this issue Jan 27, 2016 · 3 comments

Comments

@pyankoff
Copy link
Contributor

How do I save array or list into db? What type of field should I use? Thank you.

@pyankoff
Copy link
Contributor Author

I think I figured it out:

(update :table
      (set= :field
        "{text1, text2}")
      (where (:= :id "id")))

The field type should be 'text[] I'm using PostgreSQL. It means I have to format list into string, is there a better way?

@alt-vena
Copy link

I am also wondering about this. I am trying to save a class which has '(unsigned-byte 8) slots in mito.

@alt-vena
Copy link

nvm. Saw that :inflate and :deflate (to string for example) will do the trick.

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

2 participants